Function at 0x40537a
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x52afd8]
mov dl, byte [0x52af58]
dec eax
sub dl, al
mov dword [0x52afd8], eax
mov eax, dword [0x52afc4]
inc eax
mov byte [esp + 2], dl
mov edx, dword [esp + 0x4c]
mov dword [0x52afc4], eax
mov dword [esp + 8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
mov ebx, dword [0x52af6c]
push edi
mov di, word [0x52af5c]
movzx eax, byte [esi + 0x8cb]
mov dword [esp + 0x2c], eax
imul eax, ebp, 0xc
mov esi, dword [esp + 0x48]
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], 0x70
mov al, byte [eax + edx]
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x58]
movzx ecx, ax
mov eax, dword [esp + 0x48]
movzx eax, word [eax + ecx*2]
mov ecx, 0x1530
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
xor cx, word [eax + ebp*4]
movzx eax, cx
movzx ecx, word [0x52afc8]
mov dword [esp + 0x24], eax
movzx eax, word [0x52afa8]
sub eax, 0x1262
mov dword [esp + 0x38], eax
mov eax, dword [0x52af94]
mov eax, dword [eax + ebp*4]
sub eax, dword [edx + 0x77c4]
mov dword [esp + 0x34], eax
mov eax, ecx
or eax, 0x85b
imul ecx, ecx, 0xc
mov dword [esp + 0x64], eax
inc di
movzx eax, di
dec ebx
mov word [0x52af5c], di
movzx eax, word [esi + eax*2]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov dword [0x52af6c], ebx
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + esi]
cmp eax, dword [ecx + edx]
mov cl, byte [esp + 0x12]
je 0x40548e
movzx eax, cl
cmp dword [0x52af84], eax
jbe 0x4055a7
movzx eax, cl
cmp ax, word [esp + 0x24]
jne 0x4055a7
mov ebx, dword [esp + 0x54]
xor edx, edx
mov eax, dword [esp + 0x48]
mov esi, 0x12d4
movzx ecx, byte [0x52af5f]
mov dword [esp + 0x24], ecx
push 0x71
movzx eax, word [eax + ebx*2]
div esi
xor edx, edx
dec ebx
mov ebp, eax
mov dword [esp + 0x58], ebx
mov eax, 0x1c06
div dword [0x52afac]
mov dl, byte [esp + 0x16]
mov ebx, eax
inc dl
movzx eax, dl
mov byte [esp + 0x16], dl
mov edx, dword [esp + 0x50]
mov eax, dword [edx + eax*4 + 8]
xor edx, edx
div ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
mov edi, edx
pop edx
mov dword [esp + 0x14], edx
movzx esi, byte [ecx + eax]
dec eax
mov dword [esp + 0x54], eax
mov al, byte [0x52af5e]
dec al
movzx ecx, al
mov byte [0x52af5e], al
mov eax, edx
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [0x52afb8]
mov al, byte [eax + 0x419]
mov byte [esp + 0x40], al
push dword [esp + 0x40]
movzx eax, byte [esp + 0x17]
push ecx
push esi
xor eax, 0x71
mov ecx, 0x11fe
push eax
push edi
push dword [0x52af58]
mov edi, dword [esp + 0x70]
movzx eax, di
push eax
push ebx
or eax, ecx
push eax
push ebp
push dword [esp + 0x4c]
push dword [0x52afac]
call fcn.00403b70
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov ebp, dword [esp + 0x44]
xor edx, edx
mov word [ecx + ebp*2], ax
mov eax, dword [esp + 0x1c]
inc dword [eax]
mov esi, dword [eax]
lea eax, [edi + 1]
movzx ecx, byte [0x52afa2]
movzx eax, ax
div ecx
mov ecx, eax
movzx eax, word [0x52afa8]
xor ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [eax + esi*4], ecx
mov di, word [0x52af5c]
mov cl, byte [esp + 0x12]
movzx esi, byte [esp + 0x5c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
movzx eax, byte [eax + ebp]
mov ebx, dword [ebx + esi*4]
mov dword [esp + 0x48], ebx
cmp ebx, eax
jne 0x405719
mov esi, dword [esp + 0x60]
sub byte [esp + 0x54], 0x42
movzx edx, cl
shl edx, 2
lea eax, [esi + 0x3f0]
mov dword [esp + 0x4c], eax
imul eax, ebx, 0x65c
sub esi, dword [esp + 0x64]
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [0x52afd0]
xor dword [edx + ebp], eax
xor edx, edx
mov eax, dword [esp + 0x20]
mov ebp, dword [0x52afb4]
or ebp, 0x14c5
movzx eax, word [eax + ebx*4 + 2]
movzx ebx, word [0x52af5c]
sub ebx, eax
dec cl
movzx eax, cl
shl eax, 2
mov dword [esp + 0x58], eax
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x1819]
div dword [ecx + 0x4ebc]
mov edi, eax
mov eax, dword [esp + 0x48]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x48]
mov esi, dword [eax + esi]
mov edx, dword [eax]
mov eax, dword [0x52af98]
xor esi, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
movzx ecx, word [0x52afa8]
and eax, ecx
push eax
mov eax, dword [esp + 0x58]
movzx ecx, al
mov eax, dword [esp + 0x18]
push 0x18ad
movzx eax, al
and ecx, eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push esi
push edi
push dword [eax]
mov edi, dword [esp + 0x5c]
push edi
push 0x42b
push ebx
push ebp
call fcn.00404270
mov ecx, dword [0x52afd0]
add esp, 0x2c
add ecx, 0xffffec64
mov byte [esp + 0x14], al
and word [0x52afa8], cx
add edi, 0x65c
mov ecx, dword [0x52af7c]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov esi, dword [0x52afd4]
mov ebp, dword [esp + 0x44]
mov eax, dword [eax + ecx]
and eax, dword [0x52af50]
movzx ecx, byte [0x52afa2]
cdq
idiv ecx
mov eax, dword [esp + 0x18]
add word [esi + ebx*2], dx
inc ebx
mov cl, byte [esp + 0x12]
mov esi, dword [esp + 0x60]
movzx eax, byte [eax + ebp]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], edi
cmp ebx, eax
je 0x4055f6
mov di, word [0x52af5c]
mov esi, dword [esp + 0x5c]
movzx edx, byte [esp + 0x12]
mov eax, dword [0x52af64]
movzx ecx, di
cmp dword [eax + edx*4], ecx
je 0x40579f
mov eax, dword [esp + 0x20]
imul edx, edx, 0xc
mov cl, byte [eax + 0x392c]
mov eax, dword [esp + 0x30]
xor cl, 0xfe
sub cl, 2
mov byte [esi + eax], cl
mov esi, 0x11fe
mov ecx, dword [0x52afd8]
mov eax, dword [esp + 0x34]
and ecx, 0x13da
sub ecx, dword [0x52af8c]
add ecx, 0x18d5
mov word [eax + ebp*2 + 2], cx
mov eax, ebp
mov ecx, dword [0x52afb0]
add ecx, edx
xor edx, edx
div esi
mov eax, edx
xor edx, edx
div dword [esp + 0x38]
xor edx, edx
xor eax, 0x1d43
div dword [ecx + 4]
mov dword [ecx + 4], edx
mov eax, dword [0x52af84]
inc eax
xor dword [0x52af8c], eax
mov dword [0x52af84], eax
movzx ecx, byte [0x52afa2]
mov eax, 0x6c6
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x2c
ret