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

Disassembly:
sub esp, 0x574
xor eax, eax
mov dword [esp + 0x38], eax
push ebx
mov dword [esp + 0x40], eax
push esi
mov dword [esp + 0x48], eax
push edi
mov dword [esp + 0x50], eax
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x588]
mov ecx, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58c]
mov esi, dword [ecx]
add ecx, 4
inc dword [esp + esi*4 + 0x48]
dec eax
jne 0x40a072
mov eax, dword [esp + 0x58c]
cmp dword [esp + 0x48], eax
jne 0x40a0b2
mov ecx, dword [esp + 0x59c]
mov ebx, dword [esp + 0x5a0]
xor eax, eax
pop ebp
pop edi
mov dword [ecx], 0
pop esi
mov dword [ebx], 0
pop ebx
add esp, 0x574
ret
mov ebx, dword [esp + 0x5a0]
mov ecx, 1
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
cmp dword [eax], 0
jne 0x40a0dc
add eax, 4
inc ecx
lea esi, [esp + 0x84]
cmp eax, esi
jbe 0x40a0c8
mov dword [esp + 0x1c], ecx
mov esi, ecx
cmp dword [esp + 0x10], ecx
jae 0x40a0ec
mov dword [esp + 0x10], esi
mov edi, 0xf
lea eax, [esp + 0x84]
cmp dword [eax], 0
jne 0x40a109
sub eax, 4
dec edi
lea ebp, [esp + 0x48]
cmp eax, ebp
jne 0x40a0f8
mov dword [esp + 0x30], edi
cmp dword [esp + 0x10], edi
jbe 0x40a117
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
cmp ecx, edi
jae 0x40a14a
lea eax, [esp + ecx*4 + 0x48]
mov ebx, dword [eax]
sub dword [esp + 0x20], ebx
js 0x40a166
add eax, 4
inc ecx
mov ebx, dword [esp + 0x20]
add ebx, ebx
cmp ecx, edi
mov dword [esp + 0x20], ebx
jb 0x40a130
lea eax, [esp + edi*4 + 0x48]
mov ecx, dword [eax]
sub dword [esp + 0x20], ecx
jns 0x40a176
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
add ecx, dword [esp + 0x20]
lea ebx, [esp + 0x90]
mov dword [eax], ecx
xor eax, eax
lea ecx, [esp + 0x4c]
dec edi
mov dword [esp + 0x8c], eax
je 0x40a1a0
add eax, dword [ecx]
add ecx, 4
mov dword [ebx], eax
add ebx, 4
dec edi
jne 0x40a193
xor edi, edi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x40a1be
lea ecx, [esp + eax*4 + 0x88]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov dword [esp + eax*4 + 0x100], edi
inc edi
cmp edi, dword [esp + 0x58c]
jb 0x40a1a2
xor edx, edx
lea eax, [esp + 0x104]
mov dword [esp + 0x18], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xc8], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
neg eax
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x2c], 0xffffffff
jg 0x40a47f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + eax*4 + 0x48]
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
dec dword [esp + 0x34]
test eax, eax
je 0x40a46d
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jge 0x40a34c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
shl esi, 2
inc eax
mov dword [esp + 0x40], eax
add esi, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
inc dword [esp + 0x2c]
add dword [esp + 0x14], eax
sub edx, dword [esp + 0x14]
cmp edx, eax
jbe 0x40a268
mov edx, eax
mov ebx, dword [esp + 0x1c]
mov edi, 1
sub ebx, dword [esp + 0x14]
mov cl, bl
shl edi, cl
cmp edi, dword [esp + 0x40]
jbe 0x40a2a6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
inc eax
sub edi, eax
cmp ebx, edx
jae 0x40a2a6
inc ebx
cmp ebx, edx
jae 0x40a2a6
mov eax, dword [ecx + 4]
add edi, edi
add ecx, 4
cmp edi, eax
jbe 0x40a2a6
sub edi, eax
inc ebx
cmp ebx, edx
jb 0x40a293
mov eax, 1
mov cl, bl
shl eax, cl
mov ecx, dword [esp + 0x5a4]
push 8
mov dword [esp + 0x40], eax
inc eax
push eax
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x5ac]
push edx
call dword [eax + 0x20]
add esp, 0xc
test eax, eax
je 0x40a49d
lea edx, [eax + 8]
mov ecx, dword [esp + 0x59c]
add eax, 4
mov dword [esp + esi + 0xc8], edx
mov dword [ecx], edx
mov dword [esp + 0x59c], eax
mov dword [eax], 0
test esi, esi
je 0x40a33a
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x10]
mov dword [esp + esi + 0x88], eax
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], bl
mov ebx, dword [esp + 0x18]
sub cl, byte [esp + 0x10]
shr ebx, cl
shl ebx, 3
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24]
add ebx, dword [esp + esi + 0xc4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jl 0x40a24b
mov bl, byte [esp + 0x14]
mov cl, byte [esp + 0x1c]
sub cl, bl
mov eax, dword [esp + 0x58c]
mov byte [esp + 0x25], cl
lea ebp, [esp + eax*4 + 0x104]
cmp ebp, dword [esp + 0x38]
ja 0x40a375
mov byte [esp + 0x24], 0xc0
jmp 0x40a3c4
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp esi, dword [esp + 0x590]
jae 0x40a396
mov al, 0
cmp esi, 0x100
adc al, 0xff
and al, 0x60
mov byte [esp + 0x24], al
jmp 0x40a3bb
sub esi, dword [esp + 0x590]
mov eax, dword [esp + 0x598]
shl esi, 2
mov ebp, dword [esp + 0x594]
mov eax, dword [eax + esi]
mov esi, dword [ebp + esi]
add al, 0x50
mov byte [esp + 0x24], al
add dword [esp + 0x38], 4
mov dword [esp + 0x28], esi
mov edi, 1
mov esi, dword [esp + 0x18]
shl edi, cl
mov cl, bl
shr esi, cl
cmp esi, dword [esp + 0x3c]
jae 0x40a400
lea ecx, [edx + esi*8]
lea eax, [edi*8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esi, edi
mov dword [ecx], eax
mov dword [ecx + 4], ebp
add ecx, dword [esp + 0x40]
cmp esi, dword [esp + 0x3c]
jb 0x40a3e7
mov eax, 1
mov cl, byte [esp + 0x1c]
dec cl
shl eax, cl
test dword [esp + 0x18], eax
je 0x40a420
xor dword [esp + 0x18], eax
shr eax, 1
test dword [esp + 0x18], eax
jne 0x40a413
mov cl, bl
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + eax*4 + 0x88]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [esp + 0x18]
cmp eax, dword [esi]
je 0x40a219
sub esi, 4
mov eax, dword [esp + 0x10]
dec dword [esp + 0x2c]
sub dword [esp + 0x14], eax
mov eax, 1
mov cl, byte [esp + 0x14]
shl eax, cl
dec eax
and eax, dword [esp + 0x18]
cmp eax, dword [esi]
jne 0x40a445
jmp 0x40a219
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jle 0x40a207
cmp dword [esp + 0x20], 0
je 0x40a4cc
cmp dword [esp + 0x30], 1
je 0x40a4cc
mov eax, 0xfffffffb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
cmp dword [esp + 0x2c], 0
je 0x40a4bc
mov eax, dword [esp + 0x5a4]
mov ecx, dword [esp + 0xc8]
push eax
push ecx
call fcn.0040a760
add esp, 8
mov eax, 0xfffffffc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret