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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x529ce8]
mov dl, byte [0x529c68]
dec eax
sub dl, al
mov dword [0x529ce8], eax
mov eax, dword [0x529cd4]
inc eax
mov byte [esp + 2], dl
mov edx, dword [esp + 0x4c]
mov dword [0x529cd4], 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 [0x529c7c]
push edi
mov di, word [0x529c6c]
movzx eax, byte [esi + 0xca4]
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 [0x529cd8]
mov dword [esp + 0x24], eax
movzx eax, word [0x529cb8]
sub eax, 0x1262
mov dword [esp + 0x38], eax
mov eax, dword [0x529ca4]
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 [0x529c6c], di
movzx eax, word [esi + eax*2]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov dword [0x529c7c], 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 0x4054b4
movzx eax, cl
cmp dword [0x529c94], eax
jbe 0x4055cd
movzx eax, cl
cmp ax, word [esp + 0x24]
jne 0x4055cd
mov ebx, dword [esp + 0x54]
xor edx, edx
mov eax, dword [esp + 0x48]
mov esi, 0x12d4
movzx ecx, byte [0x529c6f]
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 [0x529cbc]
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 [0x529c6e]
dec al
movzx ecx, al
mov byte [0x529c6e], al
mov eax, edx
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [0x529cc8]
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 [0x529c68]
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 [0x529cbc]
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 [0x529cb2]
movzx eax, ax
div ecx
mov ecx, eax
movzx eax, word [0x529cb8]
xor ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [eax + esi*4], ecx
mov di, word [0x529c6c]
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 0x40573f
mov esi, dword [esp + 0x60]
sub byte [esp + 0x54], 0x44
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 [0x529ce0]
xor dword [edx + ebp], eax
xor edx, edx
mov eax, dword [esp + 0x20]
mov ebp, dword [0x529cc4]
or ebp, 0x14c5
movzx eax, word [eax + ebx*4 + 2]
movzx ebx, word [0x529c6c]
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 [0x529ca8]
xor esi, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
movzx ecx, word [0x529cb8]
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.00404275
mov ecx, dword [0x529ce0]
add esp, 0x2c
add ecx, 0xffffec64
mov byte [esp + 0x14], al
and word [0x529cb8], cx
add edi, 0x65c
mov ecx, dword [0x529c8c]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
mov esi, dword [0x529ce4]
mov ebp, dword [esp + 0x44]
mov eax, dword [eax + ecx]
and eax, dword [0x529c60]
movzx ecx, byte [0x529cb2]
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 0x40561c
mov di, word [0x529c6c]
mov esi, dword [esp + 0x5c]
movzx edx, byte [esp + 0x12]
mov eax, dword [0x529c74]
movzx ecx, di
cmp dword [eax + edx*4], ecx
je 0x4057c5
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 [0x529ce8]
mov eax, dword [esp + 0x34]
and ecx, 0x13da
sub ecx, dword [0x529c9c]
add ecx, 0x18d5
mov word [eax + ebp*2 + 2], cx
mov eax, ebp
mov ecx, dword [0x529cc0]
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 [0x529c94]
inc eax
xor dword [0x529c9c], eax
mov dword [0x529c94], eax
movzx ecx, byte [0x529cb2]
mov eax, 0x1c8c
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x2c
ret