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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], 3
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
add ecx, 0x13c
inc dword [eax]
call fcn.0040c190
mov dword [esp + 0x54], eax
test eax, eax
je 0x451908
mov eax, dword [esp + 0xc]
mov ecx, dword [edi]
mov edx, dword [esi + 4]
inc ecx
mov dword [esp + 0x84], 1
mov eax, dword [eax + 0x150]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x64], 0x49dcd8
mov dword [esp + 0x40], 0x49dcdc
mov dword [edi], ecx
cmp word [eax + 8], 0x47
mov eax, dword [0x49d470]
mov dword [esp + 0x88], eax
jne 0x451923
inc ecx
xor esi, esi
mov dword [edi], ecx
mov dword [esp + 0x38], ecx
mov edi, edi
mov edi, dword [edi]
mov eax, dword [edx + edi*4]
movsx eax, word [eax + 8]
cmp eax, 0x47
jge 0x40d448
lea eax, [edi + 1]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
jmp 0x40d430
sub eax, 0x47
je 0x45194a
sub eax, 1
jne 0x451931
test esi, esi
jne 0x451944
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x10]
cmp eax, dword [0x4d33a0]
jg 0x451950
test eax, eax
jle 0x451950
shl eax, 4
add eax, dword [0x4d33dc]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
cmp word [ecx + 8], 0
jne 0x40d4ab
cmp dword [ecx], 0x2b
je 0x451957
mov edx, 3
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
cmp dword [ecx + 0x14], 0
mov ecx, dword [esp + 0x38]
jg 0x40dce5
mov al, byte [ebp + 8]
mov edx, dword [esp + 0x30]
test al, al
jne 0x451a60
mov esi, dword [esp + 0x54]
cmp edx, dword [esi + 0x18]
mov esi, dword [ebp + 0x10]
jl 0x451fb7
mov esi, dword [esp + 0x54]
cmp edx, dword [esi + 0x14]
mov esi, dword [ebp + 0x10]
jg 0x451fb7
cmp ecx, edi
jne 0x451fb7
mov edi, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x40], edx
mov eax, dword [edi + 0x10]
mov dword [esp + 0x44], eax
test eax, eax
js 0x451b75
cmp byte [0x4d3389], dl
jne 0x451b7e
push 0xc
call fcn.0042016b
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [edi], 0
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], ecx
test ecx, ecx
js 0x451ba1
push dword [esp + 0x40]
mov ecx, edi
push edi
call fcn.0040c2cd
mov eax, dword [0x4d3384]
mov dword [edi + 8], eax
mov dword [0x4d3384], edi
mov edi, dword [esp + 0x54]
inc dword [0x4d3380]
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x451bad
cmp dword [edi + 0x14], 1
jge 0x40d98b
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
mov dword [esi + 0x150], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xa4], eax
mov byte [esp + 0xa8], al
mov dword [esp + 0xb0], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xb8], eax
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esi]
mov dword [esp + 0x9c], 1
mov byte [esp + 0xa0], 0
mov byte [esp + 0xc0], 0
mov edi, dword [eax + 4]
add edi, esi
cmp byte [edi + 0xd], 0
jne 0x451ddb
push 0x40
call fcn.0042016b
mov esi, eax
add esp, 4
lea eax, [esp + 0x90]
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.00411840
lea eax, [esp + 0xb0]
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
push eax
mov dword [ecx + 8], 0
call fcn.00411840
mov byte [esi + 0x30], 0
mov eax, dword [edi + 8]
mov dword [esi + 0x38], eax
mov dword [edi + 8], esi
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x54]
inc dword [edi + 4]
mov ecx, dword [esi + 0x164]
mov edi, dword [esi + 0xf8]
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
push eax
mov dword [esp + 0x44], edi
call fcn.0040ee10
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x164]
jb 0x451df4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [ecx + 0xf8], edi
mov eax, dword [eax + 4]
add eax, ecx
mov cl, byte [eax + 0xd]
mov edi, dword [eax + 8]
test cl, cl
jne 0x451e14
mov eax, edi
cmp byte [eax + 0x10], 0
mov eax, dword [ebp + 0x18]
je 0x40df36
mov byte [eax], 1
test cl, cl
jne 0x451e1c
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x40d702
cmp dword [esi + 0xc], 4
je 0x451e24
mov ecx, esi
call fcn.0040e650
push edi
mov ecx, esi
call fcn.00411840
mov edi, dword [esp + 0xc]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov cl, byte [eax + edi + 0xd]
mov eax, dword [eax + edi + 8]
test cl, cl
jne 0x451e47
mov esi, eax
cmp byte [esi + 0x18], 0
jne 0x451e4f
test cl, cl
jne 0x451e71
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x451e79
mov eax, dword [edx + 4]
cmp byte [eax + edi + 0xd], 0
lea esi, [eax + edi]
jne 0x451eb8
cmp byte [esi + 0xc], 0
jne 0x451ed8
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x40], eax
test edi, edi
je 0x40d782
lea ecx, [edi + 0x20]
call fcn.0040e650
mov ecx, edi
call fcn.0040e650
push 0x40
push edi
call fcn.0042015d
mov eax, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0xc]
mov dword [esi + 8], eax
xor al, al
mov byte [esi + 0xd], al
dec dword [esi + 4]
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
jne 0x451edf
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x14], edx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
jne 0x451ee7
mov byte [ecx + 0x18], 0
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
cmp byte [esi + 0xd], 0
mov edi, dword [esi + 8]
jne 0x451eef
add edi, 0x20
lea eax, [esp + 0xb0]
cmp edi, eax
je 0x40d7ff
cmp dword [edi + 0xc], 4
je 0x451ef7
mov ecx, edi
call fcn.0040e650
lea eax, [esp + 0xb0]
mov ecx, edi
push eax
call fcn.00411840
cmp byte [esi + 0xd], 0
mov eax, dword [esi + 8]
jne 0x451f1c
mov byte [eax + 0x30], 0
cmp byte [0x4d3389], 0
jne 0x451f24
mov edi, dword [0x4d3384]
mov dword [esp + 0x18], edi
cmp byte [0x4d3388], 0
jne 0x451f49
mov esi, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x74], eax
test esi, esi
je 0x40d8ef
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d854
push eax
mov ecx, edi
call fcn.0040c34b
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40df55
cmp byte [esi + 0x10], 0
jne 0x40d8dd
mov edi, dword [esi + 0x14]
test edi, edi
je 0x40d8d9
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40d8b5
mov eax, dword [ecx + 0xc]
dec dword [eax]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x40d8a3
push dword [ecx]
call fcn.004201a4
mov eax, dword [esp + 0x18]
add esp, 4
push 4
push dword [eax + 0xc]
call fcn.0042015d
mov ecx, dword [esp + 0x1c]
add esp, 8
push 0x10
push ecx
call fcn.0042015d
add esp, 8
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x40e0a4
push 0x10
push edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.0042015d
add esp, 8
mov edi, dword [esp + 0x18]
mov ecx, esi
call fcn.0040bd2c
push 0x20
push esi
call fcn.0042015d
add esp, 8
push 0xc
push edi
call fcn.0042015d
mov eax, dword [esp + 0x7c]
add esp, 8
mov dword [0x4d3384], eax
mov byte [0x4d3389], 0
mov eax, dword [esp + 0xc]
dec dword [0x4d3380]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], 0
mov dword [eax + 0x150], ecx
lea ecx, [esp + 0xb0]
call fcn.0040e650
lea ecx, [esp + 0x90]
call fcn.0040e650
lea ecx, [esp + 0x78]
call fcn.0040e650
mov edi, dword [esp + 0x58]
xor esi, esi
mov eax, dword [esp + 0x24]
test edi, edi
jne 0x40df02
push eax
call fcn.004201a4
mov eax, dword [esp + 0x40]
add esp, 4
xor edi, edi
test eax, eax
jne 0x40dc42
push dword [esp + 0x28]
call fcn.004201a4
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
xor edi, edi
mov esi, dword [esp + 0x2c]
lea edx, [esi*4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov eax, dword [ecx + edx]
cmp word [eax + 8], di
je 0x451c02
mov edx, dword [esp + 0x2c]
xor esi, esi
inc edx
mov dword [esp + 0x20], 1
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x451c31
cmp ax, 0x48
je 0x40df24
cmp ax, 0x40
jne 0x40df2d
test esi, esi
jne 0x40df2d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x18], eax
jg 0x451d62
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + edx]
cmp byte [eax], 0
jne 0x451c37
mov eax, dword [esp + 0x2c]
or edi, 0x200
cmp dword [0x4d3380], 0
mov edx, dword [edx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + eax*4]
mov esi, dword [eax]
mov dword [esp + 0x60], esi
je 0x451c6e
xor al, al
test al, al
jne 0x451c75
cmp byte [0x4d3389], 0
mov eax, dword [esp + 0x10]
jne 0x451c8b
push eax
push esi
call fcn.0040cf30
test al, al
jne 0x451c97
and edi, 0xff00
push 0x20
mov dword [esp + 0x20], edi
call fcn.0042016b
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 8
call fcn.0042019b
add esp, 4
mov dword [edi], eax
xor ecx, ecx
mov word [eax], cx
push 4
call fcn.0042016b
mov ecx, eax
add esp, 4
mov dword [ecx], 1
mov dword [edi + 0xc], ecx
cmp edi, esi
je 0x40db21
mov edx, dword [ecx]
cmp edx, 1
jg 0x451cba
xor al, al
test al, al
jne 0x451cc1
mov esi, dword [esi + 4]
mov dword [edi + 4], esi
lea ecx, [esi + 1]
cmp dword [edi + 8], ecx
jb 0x451ce3
mov al, 1
test al, al
je 0x451cea
lea eax, [esi*2 + 2]
push eax
mov eax, dword [esp + 0x64]
push dword [eax]
push dword [edi]
call fcn.004211b0
add esp, 0xc
mov eax, dword [esp + 0x1c]
push 0x10
mov dword [edi + 0x10], eax
call fcn.0042016b
add esp, 4
mov esi, eax
mov ecx, esi
push dword [esp + 0x14]
mov dword [esi + 8], 0
call fcn.00411840
mov eax, dword [esp + 0x10]
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40dc03
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0040cf30
mov ecx, dword [esp + 0x1c]
mov edi, dword [edi + 4]
mov edx, dword [ecx + 4]
test edi, edi
je 0x451d34
test edx, edx
je 0x451d41
cmp edi, edx
jb 0x40df62
mov esi, dword [esp + 0x34]
mov edx, dword [ecx]
mov esi, dword [esi]
test edi, edi
je 0x451d52
movzx eax, word [esi]
mov dword [esp + 0x14], eax
movzx eax, word [edx]
mov ecx, eax
mov dword [esp + 0x60], ecx
movzx ecx, word [esi]
cmp cx, ax
jne 0x40dbce
add esi, 2
add edx, 2
sub edi, 1
jne 0x40dba6
jmp 0x451d52
mov eax, dword [esp + 0x60]
cmp word [esp + 0x14], ax
sbb eax, eax
and eax, 0xfffffffe
inc eax
mov edi, dword [esp + 0x34]
test eax, eax
js 0x40dff7
jle 0x451d59
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], ecx
mov dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
inc eax
add dword [esp + 0x5c], 4
add eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 0x14]
jg 0x40d591
mov esi, dword [0x4d3384]
mov dword [esp + 0x10], esi
jmp 0x40d9a5
mov ecx, dword [esp + 0x28]
jmp 0x40dc50
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x40dcd0
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40dca4
mov eax, dword [ecx + 0xc]
dec dword [eax]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x40dc92
push dword [ecx]
call fcn.004201a4
mov eax, dword [esp + 0x18]
add esp, 4
push 4
push dword [eax + 0xc]
call fcn.0042015d
mov ecx, dword [esp + 0x1c]
add esp, 8
push 0x10
push ecx
call fcn.0042015d
add esp, 8
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
cmp eax, 5
jge 0x40e010
push 0x10
push esi
mov dword [esi + 0xc], 1
mov dword [esi], 0
call fcn.0042015d
mov eax, dword [esp + 0x44]
add esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx + edi*4], 0
inc edi
cmp edi, eax
jb 0x40dc50
jmp 0x40d973
cmp ecx, edi
jae 0x40d4d6
mov eax, dword [eax + edx*4]
lea esi, [edx*4]
inc dword [esp + 0x30]
mov dword [esp + 0x5c], 0
mov byte [esp + 0xb], 0
cmp word [eax + 8], 0
je 0x451965
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x33
je 0x40dd28
mov byte [esp + 0xb], 0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x58], eax
je 0x40de66
push 1
call fcn.0042016b
mov cl, byte [esp + 0xf]
add esp, 4
mov edx, dword [esp + 0x24]
mov byte [eax], cl
mov ecx, dword [esp + 0x58]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x78]
call fcn.0040e650
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], 1
mov dword [esp + 0x78], 0
cmp dword [esp + 0x3c], eax
je 0x40deb4
push 0x10
call fcn.0042016b
mov esi, eax
add esp, 4
lea eax, [esp + 0x78]
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.00411840
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push edi
mov dword [ecx + eax*4], esi
inc eax
cmp byte [esp + 0xf], 0
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x70], eax
jne 0x4519ce
push dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004102f0
test eax, eax
js 0x451fd0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edx*4]
cmp word [eax + 8], 0x41
je 0x40dfc0
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x40d4d6
mov esi, dword [esi + 4]
mov eax, dword [esi + ecx*4]
cmp word [eax + 8], 0x40
jne 0x451a48
lea eax, [ecx + 1]
cmp eax, edi
je 0x451a48
mov ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [eax + edx*4]
cmp word [eax + 8], 0x40
jne 0x40de47
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x54]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x14]
jge 0x40d4d6
mov eax, dword [esp + 0x20]
jmp 0x40dce5
add eax, eax
mov dword [esp + 0x1c], eax
cmp eax, 8
jae 0x40de7a
mov eax, 8
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042019b
mov edx, dword [esp + 0x28]
add esp, 4
mov esi, eax
test edx, edx
jne 0x40e038
mov eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
jmp 0x40dd36
add eax, eax
mov dword [esp + 0x34], eax
cmp eax, 8
jae 0x40dec8
mov eax, 8
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x70], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042019b
mov edx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
test edx, edx
jne 0x40e067
mov eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], eax
jmp 0x40dd84
push 1
push dword [eax + esi*4]
call fcn.0042015d
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [eax + esi*4], 0
inc esi
cmp esi, edi
jb 0x40df02
jmp 0x40d95c
sub esi, 1
js 0x40da0c
inc ecx
add edx, 4
jmp 0x40d9e0
mov esi, dword [ebp + 0x14]
mov ecx, esi
mov byte [eax], 0
call fcn.0040e650
mov dword [esi + 0xc], 1
mov dword [esi], 0
jmp 0x40d702
push eax
mov ecx, edi
call fcn.0040c34b
jmp 0x40d85f
mov edi, dword [esp + 0x34]
mov esi, dword [ecx]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test edx, edx
je 0x40dfa5
movzx ecx, word [eax]
movzx eax, cx
mov dword [esp + 0x40], eax
movzx eax, word [esi]
mov dword [esp + 0x60], ecx
mov ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
cmp cx, ax
jne 0x40dfac
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 2
mov dword [esp + 0x14], eax
sub edx, 1
jne 0x40df72
xor eax, eax
jmp 0x40dbe1
mov eax, dword [esp + 0x34]
cmp word [esp + 0x40], ax
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40dbe1
inc edx
xor esi, esi
mov eax, dword [ecx + edx*4]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x4519fb
cmp ax, 0x48
je 0x40e096
cmp ax, 0x40
je 0x40dfe7
inc edx
jmp 0x40dfc3
test esi, esi
jne 0x40dfe4
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
jmp 0x40ddff
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov dword [ecx + 0x18], 0
jmp 0x40dc03
sub eax, 5
cmp eax, 0xa
ja case.0x40e01c.6
jmp dword [eax*4 + 0x40e148]
mov ecx, dword [esi]
test ecx, ecx
je case.0x40e01c.6
push ecx
call fcn.0041e284
jmp case.0x40e01c.6
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40dea5
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.004211b0
add esp, 0xc
push dword [esp + 0x24]
call fcn.004201a4
add esp, 4
jmp 0x40dea5
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40def3
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.004211b0
add esp, 0xc
push dword [esp + 0x28]
call fcn.004201a4
add esp, 4
jmp 0x40def3
sub esi, 1
js 0x40dfeb
jmp 0x40dfe4
sub eax, 5
cmp eax, 0xa
ja case.0x40e0b0.6
jmp dword [eax*4 + 0x40e174]
mov eax, dword [edi]
mov dword [esp + 0x40], eax
test eax, eax
je case.0x40e0b0.6
lea ecx, [eax + 8]
call fcn.0040bd2c
push 0x18
push dword [esp + 0x44]
call fcn.0042015d
add esp, 8
jmp case.0x40e0b0.6
mov eax, dword [edi]
mov dword [esp + 0x40], eax
test eax, eax
je case.0x40e0b0.6
mov ecx, eax
call fcn.0041e29c
push 4
push dword [esp + 0x44]
call fcn.0042015d
add esp, 8
jmp case.0x40e0b0.6
mov ecx, dword [edi]
test ecx, ecx
je case.0x40e0b0.6
mov eax, dword [ecx]
push 1
call dword [eax]
jmp case.0x40e0b0.6
mov ecx, dword [esi]
test ecx, ecx
je case.0x40e01c.6
push ecx
call fcn.0041f1ab
jmp case.0x40e01c.6
mov ecx, dword [esi]
test ecx, ecx
je case.0x40e01c.6
mov eax, dword [ecx]
push 1
call dword [eax]
jmp case.0x40e01c.6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push 0x85
call fcn.00473ef6
or eax, 0xffffffff
jmp 0x40d983
mov eax, dword [esp + 0x18]
mov ecx, 0x6f
jmp 0x451a15
sub eax, 0x37
jne 0x40d43e
mov eax, dword [edx + edi*4 - 4]
movsx eax, word [eax + 0xa]
jmp 0x451927
dec esi
jmp 0x40d43e
inc esi
jmp 0x40d43e
xor eax, eax
jmp 0x40d48e
mov edx, 4
mov dword [esp + 0x2c], edx
jmp 0x40d4b0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + esi + 4]
mov dword [esp + 0x60], edx
cmp word [edx + 8], 0x33
mov edx, dword [esp + 0x10]
je 0x451991
mov eax, dword [eax + esi]
mov edx, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, dword [edx]
mov edx, dword [esp + 0x10]
je 0x451a01
mov eax, dword [esp + 0x20]
mov eax, dword [eax + esi]
mov eax, dword [eax]
cmp eax, 0x24
jne 0x4519a2
mov byte [esp + 0xb], 1
jmp 0x4519af
cmp eax, 0x1e
jne 0x451a25
mov dword [esp + 0x5c], 0x100
mov eax, dword [esp + 0x20]
inc edx
lea esi, [edx*4]
mov dword [esp + 0x10], edx
mov eax, dword [eax + esi]
cmp word [eax + 8], 0
je 0x451965
jmp 0x40dd13
push 0
push 1
push dword [esp + 0x68]
push dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0041e662
test eax, eax
js 0x451fd0
mov edx, dword [esp + 0x10]
inc edx
jmp 0x40dfee
inc esi
jmp 0x40dfe4
mov eax, dword [esp + 0x50]
mov ecx, 0x91
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4 + 4]
movsx eax, word [eax + 0xa]
push eax
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00473ef6
jmp 0x451fd0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4 + 4]
movsx eax, word [eax + 0xa]
push eax
push 0x91
call fcn.00473ef6
jmp 0x451fd0
mov eax, dword [esi + ecx*4]
mov ecx, dword [esp + 0xc]
movsx eax, word [eax + 0xa]
push eax
push 0x6f
call fcn.00473ef6
jmp 0x451fd0
test edx, edx
jne 0x451aec
cmp ecx, edi
je 0x40d4e5
lea eax, [esp + 0xb]
mov byte [esp + 0xb], dl
push eax
lea ecx, [esp + 0x44]
call fcn.004679af
lea ecx, [esp + 0x78]
call fcn.0040e650
lea eax, [esp + 0x78]
mov dword [esp + 0x84], 1
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0
call fcn.00467928
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
push dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004102f0
test eax, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jns 0x451af5
jmp 0x451fd0
cmp edx, 1
jne 0x40d4e5
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x68]
push eax
call 0x4860a2
test eax, eax
jne 0x451b55
lea ecx, [esp + 0x40]
call fcn.0046788b
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x451b33
mov byte [esp + 0xb], 0
mov esi, eax
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0x44]
call fcn.004679af
sub esi, 1
jne 0x451b20
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
jmp 0x451b65
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x30]
mov al, byte [ebp + 8]
mov ecx, dword [esp + 0x38]
jmp 0x40d4e5
mov dword [esp + 0x44], edx
jmp 0x40d526
mov ecx, dword [0x4d3384]
mov dword [ecx], edx
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [0x4d3384]
mov byte [0x4d3389], dl
mov dword [esp + 0x10], eax
jmp 0x40d575
mov dword [edi + 4], 0
jmp 0x40d557
mov eax, dword [esi + 0x18]
test eax, eax
je 0x451bbe
push eax
lea ecx, [esp + 0x44]
call fcn.0040c34b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x451bcf
push eax
lea ecx, [esp + 0x44]
call fcn.0040c34b
cmp byte [esi + 0x10], 0
jne 0x451be2
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x451be2
push ecx
call fcn.0041ba2c
mov ecx, esi
call fcn.0040bd2c
push 0x20
push esi
call fcn.0042015d
mov eax, dword [0x4d3384]
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x40d587
mov eax, dword [edx + ecx]
mov eax, dword [eax]
cmp eax, 0x24
je 0x451c16
cmp eax, 0x1e
jne 0x451c17
mov edi, 0x100
inc esi
lea edx, [esi*4]
mov eax, dword [edx + ecx]
cmp word [eax + 8], 0
je 0x451c02
mov dword [esp + 0x2c], esi
jmp 0x40d9ca
inc esi
jmp 0x40df2d
mov eax, dword [edx]
cmp dword [eax + 0xc], 6
jne 0x451c43
mov edx, dword [eax]
jmp 0x451c45
xor edx, edx
mov esi, dword [esp + 0x2c]
or edi, 0x200
push 1
push edi
push edx
mov eax, dword [ecx + esi*4]
push dword [eax]
call fcn.0046f888
test al, al
je 0x451dbc
mov esi, dword [esp + 0x20]
jmp 0x40dc0d
mov al, 1
jmp 0x40da5e
push edi
push edx
push esi
mov ecx, 0x4d3370
call fcn.0040bf39
mov esi, dword [esp + 0x20]
jmp 0x40dc0d
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
jmp 0x40da77
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
test ecx, ecx
je 0x40da86
push dword [esp + 0x14]
mov ecx, dword [ecx + 0x14]
call fcn.0040b3fe
mov esi, dword [esp + 0x20]
jmp 0x40dc0d
mov al, 1
jmp 0x40dae5
lea eax, [edx - 1]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
inc dword [eax]
jmp 0x40db21
xor al, al
jmp 0x40db01
test ecx, ecx
jne 0x451cf5
mov ecx, 8
jmp 0x451cfb
add ecx, 7
and ecx, 0xfffffff8
push dword [edi]
mov dword [edi + 8], ecx
call fcn.004201a4
mov eax, dword [edi + 8]
xor ecx, ecx
add esp, 4
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042019b
add esp, 4
mov dword [edi], eax
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [edi + 4]
jmp 0x40db09
test edx, edx
je 0x451d41
mov edi, dword [esp + 0x34]
jmp 0x40dffb
test edi, edi
je 0x40db8e
mov edi, dword [esp + 0x34]
jmp 0x40dbf3
xor eax, eax
jmp 0x40dbdd
mov edi, dword [esp + 0x1c]
jmp 0x40dc03
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
lea eax, [ecx + 2]
mov dword [esp + 0x40], eax
lea eax, [esi + ecx]
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x5c]
call fcn.004102f0
test eax, eax
js 0x451fd0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x2c]
or edi, 0x200
push 1
push edi
mov eax, dword [eax + 4]
push ecx
mov eax, dword [eax + edx*4]
push dword [eax]
call fcn.0040bdc1
jmp 0x40dc0d
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
movsx eax, word [eax + 0xa]
push eax
push 0x79
call fcn.00473ef6
jmp 0x451fd0
mov ecx, dword [edi + 8]
lea eax, [esp + 0x90]
push eax
call fcn.00473b63
mov byte [edi + 0xd], 0
jmp 0x40d670
mov edi, dword [esp + 0x14]
lea ecx, [esi + 0x164]
call fcn.00404716
cmp edi, dword [esi + 0x164]
jb 0x451df8
mov edi, dword [esp + 0x40]
jmp 0x40d6a9
mov eax, dword [edi + 0x38]
jmp 0x40d6ca
mov edi, dword [edi + 0x38]
jmp 0x40d6e2
cmp dword [edi + 0xc], 4
jne 0x40d6f3
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x40d702
push eax
call fcn.0040be6d
jmp 0x40d702
mov esi, dword [eax + 0x38]
jmp 0x40d71d
test cl, cl
je 0x451e58
mov edi, dword [eax + 0x38]
jmp 0x451e5a
mov edi, eax
mov edi, dword [edi + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0xc]
jmp 0x40d727
mov esi, dword [eax + 0x38]
jmp 0x40d731
test cl, cl
je 0x451e80
mov eax, dword [eax + 0x38]
add eax, 0x20
lea ecx, [esp + 0xb0]
push eax
call fcn.0040b3fe
mov eax, dword [esp + 0xbc]
mov edx, dword [edi]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x18], eax
jmp 0x40d73b
mov ecx, dword [esi + 8]
mov edi, dword [ecx + 0x38]
test ecx, ecx
je 0x451ec8
push ecx
call fcn.00403025
mov dword [esi + 8], edi
mov edi, dword [esp + 0xc]
mov byte [esi + 0xd], 0
jmp 0x40d74c
mov al, 1
jmp 0x40d78b
mov ecx, dword [ecx + 0x38]
jmp 0x40d7a5
mov ecx, dword [ecx + 0x38]
jmp 0x40d7b9
mov edi, dword [edi + 0x38]
jmp 0x40d7d1
cmp dword [esp + 0x5c], 4
jne 0x40d7e9
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x40d7ff
push eax
call fcn.0040be6d
jmp 0x40d7ff
mov eax, dword [eax + 0x38]
jmp 0x40d80c
mov ecx, dword [0x4d3384]
push ecx
mov edi, dword [ecx + 8]
mov dword [esp + 0x1c], edi
call fcn.004655d9
mov dword [0x4d3384], edi
mov byte [0x4d3389], 0
jmp 0x40d827
mov byte [0x4d3389], 1
jmp 0x40d90a
mov eax, dword [edi]
test eax, eax
je case.0x40e0b0.6
push eax
call dword [esp + 0x8c]
push 0x10
push dword [edi]
jmp 0x40e0d3
mov eax, dword [edi]
push dword [eax + 4]
call fcn.004201a4
add esp, 4
push 8
push dword [edi]
jmp 0x40e0d3
mov ecx, dword [edi]
test ecx, ecx
je case.0x40e0b0.6
push ecx
call fcn.004605e9
jmp case.0x40e0b0.6
mov eax, dword [edi]
mov dword [esp + 0x40], eax
test eax, eax
je case.0x40e0b0.6
mov ecx, eax
call fcn.0040bd2c
push 0x14
jmp 0x40e0cf
test al, al
jne 0x451fcd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push 0x70
call fcn.00473ef6
jmp 0x451fd0
add dword [esi], 0xfffffffe
mov dword [esp + 0x18], 0xffffffff
jmp 0x40d941
mov eax, dword [esi]
test eax, eax
je case.0x40e01c.6
push eax
call dword [esp + 0x8c]
push 0x10
push dword [esi]
call fcn.0042015d
add esp, 8
jmp case.0x40e01c.6
mov eax, dword [esi]
push dword [eax + 4]
call fcn.004201a4
add esp, 4
push 8
push dword [esi]
call fcn.0042015d
add esp, 8
jmp case.0x40e01c.6
mov ecx, dword [esi]
test ecx, ecx
je case.0x40e01c.6
push ecx
call fcn.004605e9
jmp case.0x40e01c.6
mov ecx, dword [esi]
test ecx, ecx
je case.0x40e01c.6
push ecx
call fcn.00471741
jmp case.0x40e01c.6