Function at 0x40a2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x51fdf4]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 8]
push ebx
add eax, 0x630
push ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
cmp eax, ecx
push edi
lea edi, [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
je 0x40a31f
cmp dword [eax], ecx
mov dword [esp + 0x18], 1
jne 0x40a323
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x60]
cmp esi, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
jne 0x40a341
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xf0]
test al, 0x40
jne 0x40a351
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x20], 0
je 0x40a359
mov dword [esp + 0x20], 1
test esi, esi
jne 0x40a365
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a36e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov edi, eax
test esi, esi
mov dword [esp + 0x2c], edi
jne 0x40a3bf
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40a3bf
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x98]
mov eax, dword [esp + 0x48]
mov cl, byte [eax + 0xfe]
test cl, cl
je 0x40a3a2
mov edx, dword [ebx]
push 7
mov ecx, ebx
call dword [edx + 0x94]
mov eax, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x30], 0
call dword [eax + 0x6c]
mov edx, dword [ebx]
push 3
mov ecx, ebx
call dword [edx + 0x94]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a3fb
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 8]
mov esi, eax
test esi, esi
jne 0x40a5e7
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebx]
push edx
mov ecx, ebx
call dword [eax + 0x88]
jmp 0x40a4cc
test esi, esi
je 0x40a458
mov esi, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
lea edx, [esi + ecx]
cmp edx, dword [eax + 0x14]
ja 0x40a42f
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x60]
add dword [eax + 0x10], ecx
jmp 0x40a440
push ecx
push edi
push eax
call dword [eax + 0x20]
add esp, 0xc
test eax, eax
jne 0x40a5d6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx]
push eax
mov eax, dword [ecx + 0x44]
push eax
mov ecx, ebx
call dword [edx + 0x78]
mov esi, eax
jmp 0x40a4bc
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebx]
push ecx
mov ecx, ebx
call dword [edx + 0x74]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40a4aa
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
call fcn.0040fd20
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0xc4]
mov ecx, dword [esp + 0x44]
add esp, 0x10
add ecx, eax
mov eax, dword [esp + 0x38]
adc eax, 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jmp 0x40a4bc
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebx]
push ecx
mov ecx, ebx
call dword [edx + 0x88]
test esi, esi
je 0x40a4cc
cmp esi, 0x86
jne 0x40a5e7
mov edx, dword [esp + 0x30]
cmp dword [edx], 0
jne 0x40a620
test esi, esi
jne 0x40a5c3
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x4c]
inc edx
test eax, eax
mov dword [ebp + 0x10], edx
je 0x40a504
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40a504
mov eax, dword [ecx]
call dword [eax + 0x24]
or eax, edx
je 0x40a5c3
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 4]
jne 0x40a59f
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
cmp eax, dword [edx]
jae 0x40a633
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push edi
push ecx
push edx
push eax
push ebp
call fcn.0040a6c0
add esp, 0x14
test eax, eax
jne 0x40a633
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, 0x20
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp]
inc edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
jne 0x40a59b
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x10]
mov esi, dword [edi]
sub eax, edx
cdq
add eax, esi
mov esi, dword [edi + 4]
push 0
push ecx
adc edx, esi
push edx
push eax
call fcn.004b5e90
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp edx, ecx
ja 0x40a63e
jb 0x40a59b
cmp eax, esi
jae 0x40a63e
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov eax, dword [edx + ecx*4]
push edi
push eax
inc ecx
push ebp
mov dword [esp + 0x1c], ecx
call fcn.0040a7b0
mov esi, dword [esp + 0x6c]
add esp, 0xc
jmp 0x40a3c7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa0]
mov esi, dword [esp + 0x60]
jmp 0x40a3c7
call fcn.00480930
cmp dword [eax], 0
je 0x40a61b
call fcn.00480930
mov esi, dword [eax]
mov edi, dword [esp + 0x5c]
mov edx, dword [ebx]
push 4
mov ecx, ebx
call dword [edx + 0x94]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
cmp esi, 0x89
je 0x40a645
mov edx, dword [ebx]
push 0x66
push esi
mov ecx, ebx
call dword [edx + 4]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x34
ret
or esi, 0xffffffff
jmp 0x40a5e7
mov edx, dword [ebx]
push 4
mov ecx, ebx
call dword [edx + 0x94]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x34
ret
mov esi, 0x89
jmp 0x40a5eb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40a679
mov eax, dword [esp + 0x58]
cmp esi, dword [eax]
jae 0x40a633
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, esi
push edi
shl ecx, 5
add ecx, edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
push ebp
call fcn.0040a6c0
add esp, 0x14
test eax, eax
jne 0x40a633
mov ecx, dword [esp + 0x58]
mov dword [ecx], esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40a6ad
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x1c]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub eax, ebx
cdq
add eax, esi
adc edx, ecx
mov ecx, dword [ebp]
push 0
push ecx
push edx
push eax
call fcn.004b5e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret