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

Disassembly:
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c6460]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c645c]
mov dword [ecx + 0x1c], eax
je 0x40a44c
mov eax, dword [esi]
test eax, eax
je 0x40a44c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a44c
push dword [esp + 0x4c]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push esi
push dword [ebp + 8]
inc dword [esi]
call fcn.0040c8c0
test eax, eax
js 0x440944
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
cmp ecx, eax
je case.0x40b057.4
mov esi, dword [edx + 4]
mov dword [esp + 0x40], esi
mov edx, dword [esi + ecx*4]
movzx eax, word [edx + 8]
cmp ax, 0x7f
je case.0x40b057.4
cwde
cmp eax, 0x33
je 0x40a07c
cmp eax, 0x4f
je case.0x40b057.4
cmp eax, 5
je 0x40a39c
cmp eax, 0x58
ja case.0x40b057.4
movzx eax, byte [eax + 0x40b64c]
jmp dword [eax*4 + 0x40b5e0]
mov eax, dword [edx]
cmp eax, 4
jl 0x40b046
cmp eax, 0x27
jge 0x40b046
mov esi, 0x14
mov dword [esp + 0x10], esi
nop
mov cl, byte [esp + 0x59]
mov edx, dword [esp + 0x1c]
test cl, cl
jne 0x40a585
mov eax, edx
imul eax, dword [eax], 0x15
movzx eax, byte [eax + esi + 0x4a5070]
cmp eax, 3
jne 0x40a334
cmp dword [esp + 0x24], 1
jne 0x40b5d2
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0x18], edi
test eax, eax
jne 0x40a7c1
test edx, edx
je 0x40a072
jmp 0x40a060
mov esi, dword [edx + 4]
push edx
call fcn.00420e2c
add esp, 4
mov edx, esi
test esi, esi
jne 0x40a060
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0x16
test esi, esi
jne 0x40a761
cmp edi, 0x4c6488
je 0x40a0d6
cmp dword [edi + 0xc], 4
je 0x40afda
mov esi, dword [edi + 8]
test esi, esi
jne 0x40afec
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x440561
push 0x4c6488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00409960
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 8]
inc esi
mov dword [esp + 0x24], esi
cmp esi, 1
jne 0x40a7ad
mov dword [esp + 0x4c], edi
cmp dword [0x4c6280], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
je 0x40a450
cmp byte [0x4c6289], 0
jne 0x4406fa
mov esi, dword [0x4c6284]
cmp dword [esi], 0
je 0x40a450
mov ecx, dword [0x4c6440]
mov byte [esp + 0x17], 0
test cl, 1
je 0x44070b
mov dword [0x4c6460], 0
mov dword [0x4c645c], 0
mov dword [esp + 0x3c], 0x4c6444
mov dword [esp + 0x60], 0x4c6444
mov edx, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
test eax, eax
je 0x440734
test ecx, ecx
je 0x44073c
cmp eax, ecx
jb 0x40a1ad
mov ecx, dword [edx]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov edx, dword [edx]
test eax, eax
je 0x40a1a9
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a1d6
add edx, 2
add ecx, 2
dec dword [esp + 0x38]
jne 0x40a195
xor eax, eax
jmp 0x40a1dc
mov eax, dword [esp + 0x18]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x40a1a9
lea ecx, [ecx]
mov ax, word [eax]
cmp ax, word [edx]
mov eax, dword [esp + 0x38]
je 0x40afc4
mov ax, word [eax]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x40a25e
jle 0x409f37
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x409f3c
mov edx, dword [ecx + 4]
cmp edx, eax
ja 0x40a810
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
test edx, edx
je 0x40a251
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x48]
jne 0x40a2f0
add dword [esp + 0x38], 2
add eax, 2
dec dword [esp + 0x40]
mov dword [esp + 0x48], eax
jne 0x40a224
mov eax, dword [esp + 0x34]
cmp edx, eax
jb 0x40a2fc
jmp 0x40a317
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x409f3c
mov edx, dword [ecx + 4]
cmp eax, edx
ja 0x40a84f
mov edx, dword [ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40a577
mov eax, dword [esp + 0x48]
lea esp, [esp]
mov ax, word [eax]
cmp ax, word [edx]
mov eax, dword [esp + 0x48]
je 0x40a55f
mov ax, word [eax]
cmp ax, word [edx]
jae 0x40a2d3
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov dword [esi], ecx
cmp dword [ecx + 0x18], 0
je 0x409f3c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x40a161
mov edx, dword [esp + 0x38]
mov ax, word [eax]
cmp ax, word [edx]
jae 0x40a317
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x1c], eax
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov dword [esi], ecx
cmp dword [ecx + 0x1c], 0
je 0x409f3c
mov ecx, dword [esp + 0x60]
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x40a161
cmp eax, 6
ja case.0x40a339.3
jmp dword [eax*4 + 0x40b6a8]
test cl, cl
jne 0x40a886
push 8
call fcn.00420db6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40b597
mov dword [ecx], esi
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
inc dword [esp + 0x50]
cmp esi, 7
je 0x40b0c4
cmp esi, 8
je 0x40b0c4
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x10], edi
mov dword [esp + 8], eax
jmp 0x409fa7
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0x16
test esi, esi
jne 0x40a892
cmp edi, 0x4c6488
je 0x40a3f6
cmp dword [edi + 0xc], 4
je 0x40a817
mov esi, dword [edi + 8]
test esi, esi
jne 0x40a829
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x4403ab
push 0x4c6488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00409960
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
inc esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
cmp esi, 1
jne 0x40a8de
mov esi, edi
mov ecx, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
jne 0x440471
mov eax, dword [esi + 0xc]
cmp eax, 5
jge 0x440483
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], 1
mov dword [esi], eax
mov esi, dword [ebp + 0xc]
inc dword [esi]
jmp 0x409fa7
mov eax, dword [esp + 0x18]
mov esi, dword [0x4c6270]
mov dword [esp + 0x34], esi
test esi, esi
je 0x440918
mov ecx, dword [0x4c6440]
mov byte [esp + 0x17], 0
test cl, 1
je 0x440749
mov dword [0x4c6460], 0
mov dword [0x4c645c], 0
mov dword [esp + 0x38], 0x4c6444
mov dword [esp + 0x60], 0x4c6444
lea ebx, [ebx]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], edx
test edx, edx
je 0x44077c
test ecx, ecx
je 0x440784
cmp edx, ecx
jb 0x40a652
mov ecx, dword [esp + 0x34]
mov esi, edx
mov edx, dword [eax]
mov ecx, dword [ecx]
test esi, esi
je 0x40a4e5
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a69c
add edx, 2
add ecx, 2
dec esi
jne 0x40a4d0
xor eax, eax
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
test eax, eax
js 0x40a6a7
jg 0x40a58d
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x4c6270]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c6270]
mov eax, dword [0x4c6460]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c6270]
mov eax, dword [0x4c645c]
mov dword [ecx + 0x1c], eax
je 0x440918
mov eax, dword [0x4c6270]
test eax, eax
je 0x440918
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x409f88
jmp 0x440918
add eax, 2
add edx, 2
dec dword [esp + 0x38]
mov dword [esp + 0x48], eax
jne 0x40a2a0
mov eax, dword [esp + 0x34]
cmp eax, dword [ecx + 4]
jae 0x40a2d3
jmp 0x40a2b8
mov eax, dword [edx + 4]
jmp 0x40a022
lea eax, [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x40a502
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
cmp ecx, edx
jbe 0x40a5af
mov ecx, edx
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test eax, eax
je 0x40a5db
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a5e3
add edx, 2
add ecx, 2
dec dword [esp + 0x40]
jne 0x40a5c3
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x48]
jb 0x40a5e5
jmp 0x40a608
jae 0x40a608
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [0x4c6270]
mov dword [esi + 0x18], eax
mov dword [0x4c6270], esi
cmp dword [esi + 0x1c], 0
je 0x40a502
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0x1c], esi
mov eax, dword [0x4c6270]
mov dword [esp + 0x60], eax
mov esi, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [0x4c6270], esi
jmp 0x40a4a0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0040b900
test eax, eax
js 0x440055
invalid
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
jmp 0x40a010
mov edi, dword [esp + 0x18]
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x40a86d
lea ecx, [ecx]
mov edi, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
je 0x40a85a
mov ax, word [eax]
mov ecx, dword [esp + 0x30]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40a4ef
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40a4e7
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x40a502
mov eax, dword [ecx + 4]
cmp edx, eax
ja 0x40b196
mov edi, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edx
mov eax, dword [edi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
test edx, edx
je 0x40a705
nop
mov edi, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
jne 0x40a70c
add dword [esp + 0x30], 2
add eax, 2
dec dword [esp + 0x40]
mov dword [esp + 0x3c], eax
jne 0x40a6e0
cmp edx, dword [ecx + 4]
jb 0x40a718
jmp 0x40a73b
mov edx, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edx]
jae 0x40a73b
mov esi, ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 0x1c]
mov dword [ecx], eax
mov eax, dword [0x4c6270]
mov dword [esi + 0x1c], eax
mov dword [0x4c6270], esi
cmp dword [esi + 0x18], 0
je 0x40a502
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x18], esi
mov eax, dword [0x4c6270]
mov dword [esp + 0x38], eax
mov esi, dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [0x4c6270], esi
jmp 0x40a4a0
cmp byte [esp + 0x2d], 0
jne 0x40adf4
push 0x18
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x40b588
push 0x4c6488
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00409960
mov eax, dword [esp + 8]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0x28], eax
jmp 0x40a0da
cmp byte [esp + 0x2d], 0
jne 0x40b58f
mov dword [esp + 0x4c], eax
jmp 0x40a0ec
mov edi, dword [esp + 8]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x78], eax
test esi, esi
jne 0x40b1bd
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x40b325
mov edx, eax
jmp 0x40a204
cmp dword [0x4c6494], 4
jne 0x40a3c2
jmp 0x44037e
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x440391
push esi
call fcn.00420e2c
add esp, 4
mov dword [edi + 8], 0
jmp 0x40a3cd
mov eax, edx
mov dword [esp + 0x34], edx
jmp 0x40a27c
add dword [esp + 0x30], 2
add eax, 2
mov dword [esp + 0x3c], eax
dec ecx
jne 0x40a670
xor eax, eax
jmp 0x40a4ef
lea eax, [ecx + 1]
mov esi, 0xd
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40a00b
mov dword [edx], esi
mov byte [esp + 0x59], 0
jmp 0x40a36f
cmp byte [esp + 0x2d], 0
jne 0x40af6c
push 0x18
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x40b579
push 0x4c6488
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00409960
mov eax, dword [esp + 8]
mov edx, esi
mov dword [esi + 0x10], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0x28], edx
jmp 0x40a3fa
cmp byte [esp + 0x2d], 0
jne 0x40b580
mov esi, edx
jmp 0x40a418
test cl, cl
je 0x40ae47
mov eax, dword [edx + 4]
cmp dword [eax], 0x12
je 0x40a97a
test cl, cl
jne 0x40af64
cmp dword [edx], 0x14
je 0x40b5b1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0040b900
test eax, eax
js 0x440055
mov edx, dword [esp + 0x54]
mov cl, byte [esp + 0x59]
mov dword [esp + 0x1c], edx
jmp case.0x40a339.2
test ecx, ecx
je 0x40a956
mov eax, dword [esi + ecx*4 - 4]
movzx eax, word [eax + 8]
cmp ax, 0x48
je 0x43ff8a
cmp ax, 0x4f
je 0x43ff8a
lea eax, [ecx + 1]
mov esi, 0x12
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40a00b
lea eax, [ecx + 1]
mov esi, 0x13
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40a00b
test cl, cl
je 0x40a998
mov esi, dword [edx + 4]
push edx
call fcn.00420e2c
mov edx, esi
add esp, 4
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], edx
cmp byte [esp + 0x58], 0
je 0x440791
mov byte [esp + 0x59], 1
dec dword [esp + 0x50]
jmp case.0x40a339.3
lea eax, [ecx + 1]
mov esi, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40a00b
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], 0x16
je 0x40b221
cmp byte [esp + 0x2d], 0
jne 0x40b2a8
push 0x18
call fcn.00420db6
mov esi, eax
add esp, 4
test esi, esi
je 0x40b54b
push 0x4c6488
mov ecx, esi
invalid
inc esi
or byte [eax], al
add byte [eax], al