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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov esi, dword [eax]
push esi
call fcn.00411c85
add esp, 4
mov dword [esp + 0x34], eax
add eax, 1
je 0x42d87b
add eax, 7
shr eax, 3
add eax, eax
add eax, eax
add eax, eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004120ca
mov ecx, dword [esp + 0x38]
add esp, 4
lea edx, [ecx + ecx + 2]
push edx
push esi
push eax
mov dword [esp + 0x3c], eax
call fcn.00411920
add esp, 0xc
push 4
call fcn.004120ca
add esp, 4
test eax, eax
je 0x42d885
mov dword [eax], 1
mov esi, dword [ebp + 8]
cmp dword [esi + 0x138], 0
mov dword [esp + 0x3c], eax
je 0x42d967
cmp dword [eax], 1
jg 0x42d88c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [0x481640]
mov eax, dword [esi + 0x134]
test eax, eax
jne 0x42d8f6
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x12c]
test esi, esi
je 0x42d967
mov dword [esp + 0x1c], esi
mov edi, edi
mov edx, dword [esi + 4]
cmp edx, dword [esp + 0x34]
jne 0x40b465
test edx, edx
jbe 0x40a71b
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
jmp 0x40a700
mov si, word [eax]
cmp si, word [ecx]
jne 0x40b461
add eax, 2
add ecx, 2
sub edx, 1
jne 0x40a700
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add dword [eax], 0xffffffff
jne 0x40a73e
mov eax, dword [esp + 0x30]
push eax
call fcn.00411c9f
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
call fcn.00411c9f
add esp, 4
mov eax, esi
test eax, eax
je 0x42d970
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x140]
inc eax
mov dword [edi], eax
mov esi, dword [ebx + 4]
mov dword [esp + 0xa4], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
mov esi, dword [esi + eax*4]
cmp word [esi + 8], 0x47
mov dword [esp + 0x68], 0x486648
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x30], 0x48aee0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
jne 0x42d8ea
inc eax
mov dword [esp + 0x84], edx
mov edx, eax
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x54], edx
mov dword [edi], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + eax*4]
movsx ecx, word [ecx + 8]
cmp ecx, 0x47
jge 0x40a7ef
inc eax
jmp 0x40a7db
sub ecx, 0x47
je 0x42d9cc
sub ecx, 1
jne 0x42d9a7
test esi, esi
jne 0x42d9c5
mov dword [esp + 0x14], eax
inc eax
mov dword [edi], eax
mov eax, dword [esp + 0x7c]
cmp eax, dword [0x4a7e90]
jg 0x42d9d2
cmp eax, ecx
jle 0x42d9d2
shl eax, 4
add eax, dword [0x4a7ec4]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x48], ecx
mov dword [esp + 0x5c], ecx
jle 0x40aa0a
mov dword [esp + 0x10], 3
mov dword [esp + 0x80], ecx
cmp edx, dword [esp + 0x14]
jae 0x40aa0a
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x5c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
xor edi, edi
xor bl, bl
cmp word [ecx + 8], di
je 0x42d9db
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*4]
cmp word [edx + 8], 0x33
je 0x40a890
xor bl, bl
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
je 0x40b479
push 1
call fcn.004120ca
add esp, 4
test eax, eax
je 0x42da13
mov byte [eax], bl
mov edx, dword [esp + 0x34]
mov dword [edx + esi*4], eax
inc esi
mov dword [esp + 0x38], esi
test bl, bl
jne 0x42da1a
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x42db20
mov eax, dword [esp + 0x28]
cmp eax, 8
je 0x42db33
cmp eax, 0xa
je 0x42db58
cmp eax, 5
je 0x42db6f
cmp eax, 0xb
je 0x42db7d
cmp eax, 0xc
je 0x42db9f
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 0
cmp esi, eax
je 0x40b4d6
mov edi, dword [esp + 0x6c]
push 0x10
call fcn.004120ca
add esp, 4
test eax, eax
je 0x42dd85
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
cmp eax, 1
jne 0x42dbb6
mov edx, dword [esp + 0x20]
mov dword [ebx], edx
mov eax, ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + esi*4], eax
inc esi
push ebx
mov dword [esp + 0x74], esi
mov esi, dword [edi + esi*4 - 4]
push esi
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b570
test eax, eax
jne 0x42eb1f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax*4 + 4]
inc eax
cmp word [edx + 8], 0x41
mov dword [esp + 0x10], eax
je 0x42dd8c
mov edx, dword [esp + 0x54]
cmp edx, ebx
je 0x40aa0a
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov ecx, 0x40
cmp word [eax + 8], cx
jne 0x42ddd7
lea eax, [edx + 1]
cmp eax, dword [esp + 0x14]
je 0x42ddd7
mov esi, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
cmp word [eax + 8], cx
jne 0x40a9f1
inc dword [esp + 0x10]
mov eax, dword [esp + 0x80]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
jl 0x40a852
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x4c]
jl 0x42eb0c
cmp eax, dword [esp + 0x48]
jg 0x42eb0c
cmp edx, dword [esp + 0x14]
jne 0x42eb0c
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x48]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
jl 0x42dded
cmp byte [0x4a6ce5], 0
jne 0x42ddf6
push 0xc
call fcn.004120ca
add esp, 4
cmp eax, ebx
je 0x42de99
mov edi, eax
mov dword [edi], ebx
mov edx, dword [esp + 0x64]
mov dword [edi + 4], edx
cmp dword [esp + 0x64], ebx
jl 0x42de17
mov eax, dword [esp + 0x60]
cmp eax, ebx
jne 0x42de1f
mov dword [edi], ebx
mov eax, dword [0x4a6ce0]
mov dword [edi + 8], eax
mov dword [0x4a6ce0], edi
mov eax, dword [esp + 0x60]
inc dword [0x4a6cdc]
cmp eax, ebx
jne 0x42dea0
cmp esi, 1
mov dword [esp + 0x80], 1
jl 0x40af69
jmp 0x40aad0
mov esi, dword [esp + 0x1c]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40a6e0
jmp 0x42d967
add eax, eax
cmp eax, 4
jae 0x40b485
mov eax, 4
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004120ca
mov edx, dword [esp + 0x38]
add esp, 4
lea ecx, [esi*4]
push ecx
push edx
push eax
mov dword [esp + 0x6c], eax
call fcn.00411920
mov eax, dword [esp + 0x40]
add esp, 0xc
push eax
call fcn.00411c9f
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x34], ecx
jmp 0x40a8a0
add eax, eax
cmp eax, 4
jae 0x40b4e2
mov eax, 4
xor ecx, ecx
mov dword [esp + 0x74], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004120ca
mov ebx, dword [esp + 0x70]
mov edi, eax
add esp, 4
lea eax, [esi*4]
push eax
push ebx
push edi
call fcn.00411920
add esp, 0xc
push ebx
call fcn.00411c9f
add esp, 4
mov dword [esp + 0x6c], edi
jmp 0x40a925
mov eax, 8
jmp 0x40a642
xor eax, eax
jmp 0x40a68e
mov eax, dword [esp + 0x3c]
dec dword [eax]
lea esi, [esp + 0x30]
call fcn.00401f80
mov eax, dword [esp + 0x34]
inc eax
push eax
call fcn.00447220
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x38], esi
neg ecx
or ecx, eax
push ecx
call fcn.004120ca
mov edx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edx
push esi
call fcn.00411920
mov dword [esp + 0x3c], esi
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40a6ab
push edx
mov edx, dword [ebp + 8]
push 0x6f
push edx
jmp 0x42eb1a
mov esi, dword [esi + 0x138]
sub esi, 1
js 0x42d967
mov dword [esp + 0x7c], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x5c], esi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x7c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ecx + eax*4]
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.0040cad0
test eax, eax
jge 0x42d94e
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x5c], edx
jmp 0x42d95d
jle 0x42d984
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x48], ecx
jle 0x42d915
lea ecx, [esp + 0x30]
call fcn.00403210
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call fcn.0047cef3
jmp 0x40b44f
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x48], edx
jg 0x42d967
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
lea ecx, [esp + 0x30]
call fcn.00403210
jmp 0x40a73e
sub ecx, 0x37
jne 0x40a7ec
mov edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*4 - 4]
movsx edx, word [ecx + 0xa]
push edx
push 0x6f
jmp 0x42eb16
dec esi
inc eax
jmp 0x40a7db
inc esi
jmp 0x40a7ec
mov dword [esp + 0x58], ecx
jmp 0x40a835
mov ecx, dword [eax]
mov ecx, dword [ecx]
cmp ecx, 0x24
jne 0x42d9ef
mov bl, 1
jmp 0x42d9fd
cmp ecx, 0x1e
jne 0x42dd96
mov edi, 0x100
mov ecx, dword [eax + 4]
inc dword [esp + 0x10]
add eax, 4
cmp word [ecx + 8], 0
je 0x42d9db
jmp 0x40a87e
xor eax, eax
jmp 0x40a8b4
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x54]
mov eax, dword [edx + ecx*4]
cmp word [eax + 8], 0x33
jne 0x42dda6
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
xor ecx, ecx
call fcn.0040ce20
test al, al
je 0x42ddbe
test dword [esp + 0x18], 0x100
je 0x42da83
test edi, 0x100
jne 0x42da83
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
push edx
push 0xb0
jmp 0x42eb16
mov eax, dword [esp + 0x1c]
mov edi, 1
add dword [esp + 0x54], edi
add dword [esp + 0x10], edi
cmp dword [eax + 8], 5
jne 0x42daf4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x54]
mov edx, dword [edx + eax*4]
cmp word [edx + 8], 0x4e
jne 0x42daf4
mov edx, dword [ebp + 8]
push 0
lea eax, [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x60]
call fcn.0040d060
test eax, eax
je 0x42daf4
lea esi, [esp + 0x20]
call fcn.00409e80
lea ecx, [esp + 0x30]
call fcn.00442ac4
lea ecx, [esp + 0x68]
call fcn.00411490
mov eax, edi
jmp 0x40b44f
lea esi, [esp + 0x20]
call fcn.00409e80
mov eax, dword [esp + 0x1c]
push esi
lea esi, [esp + 0x6c]
mov dword [esp + 0x2c], 6
mov dword [esp + 0x24], eax
call fcn.0040c820
mov ebx, dword [esp + 0x14]
jmp 0x40a9a6
push eax
call fcn.00443775
mov dword [esp + 0x2c], 0
jmp 0x40a8d4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a905
push eax
call dword [0x48142c]
mov edx, dword [esp + 0x20]
push edx
call fcn.00411c9f
add esp, 4
jmp 0x40a905
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a905
push eax
call fcn.00443ed7
jmp 0x40a905
lea eax, [esp + 0x20]
call fcn.0040ed70
jmp 0x40a905
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411c9f
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00411c9f
add esp, 4
jmp 0x40a905
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a905
push eax
call fcn.0044c06c
jmp 0x40a905
dec eax
cmp eax, 0xb
ja 0x42dc69
jmp dword [eax*4 + 0x42df47]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
jmp 0x40a95a
xor eax, eax
jmp 0x40a95c
add dword [esp + 0x10], 2
jmp 0x40a9a6
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x91
push ecx
jmp 0x42eb1a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
movsx edx, word [ecx + 0xa]
push edx
push 0x91
jmp 0x42eb16
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
push edx
push 0x79
jmp 0x42eb16
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edx*4]
movsx eax, word [edx + 0xa]
mov ecx, dword [ebp + 8]
push eax
push 0x6f
push ecx
jmp 0x42eb1a
mov dword [esp + 0x64], ebx
jmp 0x40aa52
mov edx, dword [0x4a6ce0]
mov dword [edx], ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [0x4a6ce0]
mov dword [ecx + 4], eax
mov byte [0x4a6ce5], 0
jmp 0x40aaa2
mov dword [edi + 4], ebx
jmp 0x40aa86
push 0x20
mov dword [esp + 0x1c], eax
call fcn.004120ca
add esp, 4
cmp eax, ebx
je 0x42de40
push eax
call fcn.0044c0aa
jmp 0x42de42
xor eax, eax
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
mov dword [edi], eax
call fcn.0040e910
mov edx, dword [edi]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x14], edx
mov eax, dword [edi]
mov dword [eax + 0x18], ebx
mov ecx, dword [edi]
mov dword [ecx + 0x1c], ebx
mov edx, dword [esi + 0x18]
mov eax, dword [edi]
push edx
add eax, 0x18
push eax
mov ecx, edi
call fcn.00453f1a
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi]
push ecx
add edx, 0x1c
push edx
mov ecx, edi
call fcn.00453f1a
mov esi, dword [esp + 0x48]
jmp 0x40aa94
xor edi, edi
jmp 0x40aa94
mov edi, eax
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x42deb7
push eax
lea ecx, [esp + 0x64]
call fcn.0040c220
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x42decc
push eax
lea ecx, [esp + 0x64]
call fcn.0040c220
cmp byte [edi + 0x10], 0
jne 0x42dee8
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x42dee8
push 1
call fcn.0040ecd0
push edi
call fcn.00443775
jmp 0x40aab4
mov edx, dword [esp + 0x84]
push edx
push 0x70
mov eax, dword [ebp + 8]
push eax
call fcn.0045fdc0