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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x138
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x100], edx
mov dword [esp + 0x134], eax
mov esi, dword [esp + 0x170]
mov ebp, dword [esp + 0x174]
mov ebx, dword [esp + 0x17c]
mov ecx, dword [esp + 0x184]
test eax, eax
je 0x404c00
movsx eax, byte [0x59b6f4]
test eax, eax
je 0x404b11
mov eax, edx
cmp eax, 0xffffffff
je 0x405955
movsx eax, byte [esp + 0x18c]
test eax, eax
jne 0x404afd
mov eax, edx
mov edx, dword [eax*4 + 0x87274c]
mov eax, dword [edx + 0x124]
test eax, eax
je 0x404c00
mov eax, dword [eax + 0x44]
mov dword [esp + 0xe4], eax
test eax, eax
je 0x404c00
mov eax, 1
mov dword [esp + 0x104], eax
jmp 0x404b23
xor eax, eax
mov dword [esp + 0xe4], eax
xor edx, edx
mov dword [esp + 0x104], edx
jmp 0x404b23
xor eax, eax
mov dword [esp + 0xe4], eax
xor edx, edx
mov dword [esp + 0x104], edx
mov eax, dword [esp + 0x134]
mov edx, dword [eax + 0x44]
mov dword [esp + 0xf8], edx
test edx, edx
je 0x404c00
mov eax, edx
cmp dword [eax + 0x88], 0
je 0x404b50
cmp dword [eax + 0x8c], 0
jne 0x404b5e
mov eax, 1
mov dword [esp + 0x108], eax
jmp 0x404b67
xor eax, eax
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x404b7b
xor eax, eax
mov dword [esp + 0x108], eax
mov eax, edx
mov edx, dword [eax + 0xc0]
mov dword [esp + 0x10c], edx
mov edi, dword [esp + 0x108]
test edi, edi
jne 0x404b9b
mov eax, edx
test eax, eax
je 0x404c00
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x404bc2
mov eax, dword [esp + 0xe8]
movsx edx, al
neg edx
inc edx
mov edi, dword [esp + 0xf8]
mov byte [edi + 0xa8], dl
jmp 0x404bd0
mov eax, dword [esp + 0xf8]
mov byte [eax + 0xa8], 1
mov eax, dword [esp + 0x108]
test eax, eax
jne 0x404c0d
mov eax, dword [esp + 0x104]
test eax, eax
je 0x404bf1
mov eax, dword [esp + 0x158]
test eax, eax
jne 0x404c0d
mov eax, dword [esp + 0xf8]
movsx edx, byte [eax + 0x50]
test edx, edx
jne 0x404c0d
xor eax, eax
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x108]
test eax, eax
jne 0x404cce
mov edx, dword [esp + 0xf8]
mov eax, dword [edx + 0x30]
mov edx, dword [edx + 0x34]
mov edi, dword [esp + 0x16c]
sub eax, edi
sbb edx, esi
jge 0x404c4a
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x16c]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], esi
mov eax, dword [esp + 0xf8]
mov edx, dword [eax + 0x38]
mov edi, dword [eax + 0x3c]
sub edx, ebp
mov esi, dword [esp + 0x178]
sbb edi, esi
jge 0x404c71
mov dword [eax + 0x38], ebp
mov ebp, dword [esp + 0x178]
mov dword [eax + 0x3c], ebp
mov ebp, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
sub ebp, ebx
mov edx, dword [esp + 0x180]
sbb eax, edx
jl 0x404c9c
or ebp, eax
je 0x404c9c
mov eax, dword [esp + 0xf8]
mov dword [eax + 0x40], ebx
mov ebx, dword [esp + 0x180]
mov dword [eax + 0x44], ebx
mov eax, dword [esp + 0xf8]
mov ebx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
sub ebx, ecx
mov edx, dword [esp + 0x188]
sbb eax, edx
jl 0x404cce
or ebx, eax
je 0x404cce
mov eax, dword [esp + 0xf8]
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x188]
mov dword [eax + 0x4c], ecx
mov ebx, dword [esp + 0x134]
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0xf8]
xor ecx, ecx
call fcn.00406794
mov eax, ebx
mov esi, dword [eax + 4]
mov ebx, dword [eax + 0x34]
lea ecx, [ebx - 1]
mov ebp, ecx
test ecx, ecx
jl 0x404d21
mov dword [esp + 0x130], ebx
cmp ebp, ecx
jge 0x404d05
mov esi, dword [esi + 8]
mov ebx, dword [esi + 0x44]
cmp byte [ebx + 0xab], 1
je 0x405e7a
dec ebp
test ebp, ebp
jge 0x404cfe
mov ebx, dword [esp + 0x130]
cmp ebp, 0xffffffff
jne 0x404dba
mov eax, dword [esp + 0x104]
test eax, eax
je 0x404d40
mov eax, dword [esp + 0x158]
test eax, eax
jne 0x404db8
mov ecx, dword [esp + 0xf8]
mov esi, dword [ecx + 0x38]
mov eax, esi
cdq
mov ebp, esi
sub ebp, dword [ecx + 0x48]
sbb edx, dword [ecx + 0x4c]
jl 0x404d5f
or ebp, edx
jne 0x40596c
mov ebx, dword [esp + 0x10c]
mov ebp, ecx
mov edx, dword [ebp + 0x88]
add edx, edx
add edx, edx
imul edx, esi
mov ecx, dword [ebp + 0x30]
lea eax, [ecx + ecx]
add eax, eax
add eax, ebx
add eax, edx
mov edi, dword [ebp + 0x40]
sub edi, ecx
add edi, 1
add edi, edi
add edi, edi
push edi
push eax
call dword [0x5b8560]
add esp, 8
inc esi
mov eax, esi
cdq
mov ecx, esi
sub ecx, dword [ebp + 0x48]
sbb edx, dword [ebp + 0x4c]
jl 0x404d68
or ecx, edx
je 0x404d68
xor ebp, ebp
mov eax, dword [esp + 0x134]
mov ebx, dword [eax + 0x34]
jmp 0x404dba
xor ebp, ebp
lea edx, [ebp + 1]
mov eax, dword [esp + 0x134]
call fcn.0043bf6c
mov esi, eax
xor ecx, ecx
mov dword [esp + 0xe8], ecx
cmp ebp, ebx
jge 0x404c00
mov ebx, dword [esi + 0x44]
movsx ecx, byte [esi + 0x40]
test ecx, ecx
je 0x4050f6
mov ecx, dword [esp + 0x108]
cmp ecx, 1
jne 0x404ed0
mov dword [esp + 0xec], ebp
mov dword [esp + 0xf0], esi
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x120], ecx
mov ebp, dword [esp + 0x160]
mov dword [esp + 0x118], ebp
mov esi, dword [esp + 0x164]
mov dword [esp + 0x124], esi
mov edi, dword [esp + 0x168]
mov dword [esp + 0x114], edi
mov eax, dword [ebx + 0x88]
cdq
add eax, ecx
adc edx, ebp
add eax, 0xffffffff
mov dword [esp + 0xf4], eax
adc edx, 0xffffffff
mov dword [esp + 0x110], edx
mov eax, dword [ebx + 0x8c]
cdq
add eax, esi
adc edx, edi
add eax, 0xffffffff
mov dword [esp + 0xfc], eax
adc edx, 0xffffffff
mov dword [esp + 0x130], edx
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
add eax, ecx
mov dword [esp + 0x10c], eax
adc edx, ebp
mov dword [esp + 0x11c], edx
mov ecx, dword [ebx + 0x78]
mov ebp, dword [ebx + 0x7c]
add ecx, esi
mov dword [esp + 0x128], ecx
adc ebp, edi
mov dword [esp + 0x12c], ebp
mov esi, dword [esp + 0xf0]
mov ebp, dword [esp + 0xec]
mov edi, dword [esp + 0xf4]
mov ecx, dword [esp + 0xfc]
jmp 0x405043
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
mov edi, dword [esp + 0x15c]
add eax, edi
mov ecx, dword [esp + 0x160]
adc edx, ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov edi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [esp + 0x164]
add edi, ecx
mov ecx, dword [esp + 0x168]
adc eax, ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], eax
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0xa4], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xf8]
mov edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], eax
mov edi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov edi, dword [ecx + 0x40]
sub edi, dword [ecx + 0x30]
add edi, 1
mov dword [esp + 0xbc], edi
mov edi, dword [ecx + 0x48]
sub edi, dword [ecx + 0x38]
add edi, 1
mov dword [esp + 0xc0], edi
lea eax, [esp + 0x94]
call fcn.00406570
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x120], edi
mov eax, edi
cdq
mov dword [esp + 0x118], edx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x124], ecx
mov eax, ecx
cdq
mov dword [esp + 0x114], edx
mov eax, dword [esp + 0xd8]
lea edi, [edi + eax - 1]
mov eax, edi
cdq
mov dword [esp + 0x110], edx
mov eax, dword [esp + 0xdc]
lea eax, [ecx + eax - 1]
mov dword [esp + 0xfc], eax
cdq
mov dword [esp + 0x130], edx
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
mov eax, dword [esp + 0x15c]
add edx, eax
mov dword [esp + 0x10c], edx
mov eax, dword [esp + 0x160]
adc ecx, eax
mov dword [esp + 0x11c], ecx
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [esp + 0x164]
add edx, eax
mov dword [esp + 0x128], edx
mov eax, dword [esp + 0x168]
adc ecx, eax
mov dword [esp + 0x12c], ecx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x158]
lea eax, [eax + 1]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x110]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x3c], ecx
movsx ecx, byte [esp + 0x18c]
mov byte [esp + 0x40], cl
mov eax, esi
mov edx, dword [esp + 0x100]
mov ecx, 1
call fcn.00404a61
mov ecx, dword [esp + 0x104]
cmp ecx, 1
je 0x405973
movsx ecx, byte [ebx + 0xab]
test ecx, ecx
je 0x40510c
movsx ecx, word [ebx + 0xa2]
test ecx, ecx
jne 0x405114
mov esi, dword [esi + 0xc]
jmp 0x405865
mov ecx, dword [ebx + 0x54]
movsx edi, byte [ecx]
test edi, edi
je 0x405131
movsx ecx, word [ebx + 0xa4]
test ecx, ecx
jne 0x405131
mov esi, dword [esi + 0xc]
jmp 0x405865
movsx ecx, byte [ebx + 0x10c]
test ecx, ecx
je 0x405144
mov esi, dword [esi + 0xc]
jmp 0x405865
mov ecx, dword [esp + 0x108]
test ecx, ecx
jne 0x405217
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x114], edx
mov eax, ecx
mov edi, dword [esp + 0xf8]
sub eax, dword [edi + 0x40]
sbb edx, dword [edi + 0x44]
jl 0x40517d
or eax, edx
je 0x40517d
mov esi, dword [esi + 0xc]
jmp 0x405865
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x12c], eax
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x118], edx
sub eax, dword [edi + 0x48]
sbb edx, dword [edi + 0x4c]
jl 0x4051a5
or eax, edx
je 0x4051a5
mov esi, dword [esi + 0xc]
jmp 0x405865
mov eax, dword [ebx + 0x88]
cdq
add ecx, eax
mov eax, dword [esp + 0x114]
adc eax, edx
sub ecx, dword [edi + 0x30]
sbb eax, dword [edi + 0x34]
mov dword [esp + 0x114], eax
jl 0x4051cf
or ecx, dword [esp + 0x114]
jne 0x4051d7
mov esi, dword [esi + 0xc]
jmp 0x405865
mov eax, dword [ebx + 0x8c]
cdq
mov ecx, dword [esp + 0x12c]
add ecx, eax
mov eax, dword [esp + 0x118]
adc eax, edx
sub ecx, dword [edi + 0x38]
mov dword [esp + 0x12c], ecx
sbb eax, dword [edi + 0x3c]
mov dword [esp + 0x118], eax
jl 0x40520f
or ecx, dword [esp + 0x118]
jne 0x405217
mov esi, dword [esi + 0xc]
jmp 0x405865
mov ecx, dword [esp + 0x104]
cmp ecx, 1
jne 0x405485
mov ecx, dword [esp + 0xe4]
test ecx, ecx
je 0x405983
mov ecx, dword [esp + 0x108]
test ecx, ecx
jne 0x4053a3
mov edi, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x78]
mov edi, dword [ebx + 0x7c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edi
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xf8]
mov edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
mov edi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
mov edi, dword [ecx + 0x40]
sub edi, dword [ecx + 0x30]
add edi, 1
mov dword [esp + 0x6c], edi
mov edi, dword [ecx + 0x48]
sub edi, dword [ecx + 0x38]
add edi, 1
mov dword [esp + 0x70], edi
lea eax, [esp + 0x44]
call fcn.00406570
mov eax, dword [esp + 0x78]
cdq
mov edi, dword [esp + 0x15c]
add eax, edi
mov ecx, dword [esp + 0x160]
adc edx, ecx
add eax, dword [ebx + 0x70]
adc edx, dword [ebx + 0x74]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov eax, dword [esp + 0x7c]
cdq
mov ecx, dword [esp + 0x164]
add eax, ecx
mov ecx, dword [esp + 0x168]
adc edx, ecx
add eax, dword [ebx + 0x78]
adc edx, dword [ebx + 0x7c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xe4]
mov edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], eax
mov edi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov edi, dword [ecx + 0x40]
sub edi, dword [ecx + 0x30]
add edi, 1
mov dword [esp + 0xbc], edi
mov edi, dword [ecx + 0x48]
sub edi, dword [ecx + 0x38]
add edi, 1
mov dword [esp + 0xc0], edi
lea eax, [esp + 0x94]
call fcn.00406570
mov ecx, dword [esp + 0x78]
add dword [esp + 0xc8], ecx
mov edi, dword [esp + 0x7c]
add dword [esp + 0xcc], edi
jmp 0x405464
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
mov edi, dword [esp + 0x15c]
add eax, edi
mov ecx, dword [esp + 0x160]
adc edx, ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov edi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [esp + 0x164]
add edi, ecx
mov ecx, dword [esp + 0x168]
adc eax, ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], eax
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0xa4], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xe4]
mov edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], eax
mov edi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov edi, dword [ecx + 0x40]
sub edi, dword [ecx + 0x30]
add edi, 1
mov dword [esp + 0xbc], edi
mov edi, dword [ecx + 0x48]
sub edi, dword [ecx + 0x38]
add edi, 1
mov dword [esp + 0xc0], edi
lea eax, [esp + 0x94]
call fcn.00406570
cmp dword [esp + 0xd8], 0
jle 0x40597b
cmp dword [esp + 0xdc], 0
jle 0x40597b
jmp 0x40553e
mov edi, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ecx
mov ecx, dword [ebx + 0x78]
mov edi, dword [ebx + 0x7c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edi
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0xa4], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xf8]
mov edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], eax
mov edi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov edi, dword [ecx + 0x40]
sub edi, dword [ecx + 0x30]
add edi, 1
mov dword [esp + 0xbc], edi
mov edi, dword [ecx + 0x48]
sub edi, dword [ecx + 0x38]
add edi, 1
mov dword [esp + 0xc0], edi
lea eax, [esp + 0x94]
call fcn.00406570
cmp dword [esp + 0xd8], 0
jle 0x405e72
cmp dword [esp + 0xdc], 0
jle 0x405e72
mov ecx, dword [ebx + 0x54]
movsx edi, byte [ecx]
test edi, edi
jne 0x405553
xor ecx, ecx
mov dword [esp + 0x118], ecx
jmp 0x4055ad
xor ecx, ecx
mov byte [0x5b8720], cl
mov byte [esp + 0xc], cl
mov byte [esp + 0x10], cl
mov eax, 0x5b8720
mov edx, dword [ebx + 0x54]
mov ecx, dword [0x8723d4]
call fcn.00457124
movsx ecx, al
test ecx, ecx
jl 0x405fc5
mov eax, dword [0x8723c4]
mov edx, 0x5b8720
xor ecx, ecx
call fcn.0040cb55
mov dword [esp + 0xe8], eax
mov ecx, eax
test ecx, ecx
je 0x405e64
mov edi, dword [ecx + 0x44]
mov dword [esp + 0x118], edi
cmp dword [ebx + 0xc0], 0
je 0x405862
mov ecx, dword [ebx + 0x84]
cmp ecx, 0x808080
je 0x4056dd
mov edi, dword [ebx + 0xe8]
mov ecx, dword [ebx + 0xec]
sub edi, dword [0x871f08]
sub ecx, dword [0x871f0c]
or edi, ecx
je 0x4058e5
mov edi, dword [ebx + 0xe0]
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x110], eax
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x10c], ecx
lea ecx, [eax + eax]
add ecx, ecx
cmp eax, 0x2000
jg 0x405d40
test edi, edi
je 0x405d1f
mov eax, ecx
imul eax, dword [esp + 0x10c]
lea ecx, [ecx + eax + 4]
push ecx
push edi
call fcn.0046f1bf
add esp, 8
mov dword [esp + 0x114], eax
mov ecx, eax
test ecx, ecx
je 0x405ce8
mov ecx, dword [esp + 0x114]
mov dword [ebx + 0xe0], ecx
test ecx, ecx
je 0x405fa5
mov eax, dword [ebx + 0x88]
lea edi, [eax - 1]
mov edx, dword [ebx + 0x8c]
lea ecx, [edx - 1]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x84]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x114]
mov edx, dword [ebx + 0xd0]
xor ecx, ecx
call fcn.00406858
mov ecx, dword [ebx + 0xe0]
mov dword [esp + 0x114], ecx
mov dword [ebx + 0xc0], ecx
mov edi, dword [0x871f08]
mov ecx, dword [0x871f0c]
mov dword [ebx + 0xe8], edi
mov dword [ebx + 0xec], ecx
mov ecx, dword [ebx + 0x80]
cmp ecx, 0x80
je 0x405800
mov edi, dword [ebx + 0xe8]
mov ecx, dword [ebx + 0xec]
sub edi, dword [0x871f08]
sub ecx, dword [0x871f0c]
or edi, ecx
je 0x405875
mov edi, dword [ebx + 0xe0]
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10c], eax
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x110], ecx
lea ecx, [eax + eax]
add ecx, ecx
cmp eax, 0x2000
jg 0x405bd2
test edi, edi
je 0x405bb1
mov eax, ecx
imul eax, dword [esp + 0x110]
lea ecx, [ecx + eax + 4]
push ecx
push edi
call fcn.0046f1bf
add esp, 8
mov dword [esp + 0x114], eax
mov ecx, eax
test ecx, ecx
je 0x405b7a
mov ecx, dword [esp + 0x114]
mov dword [ebx + 0xe0], ecx
test ecx, ecx
je 0x405fb5
mov eax, dword [ebx + 0x88]
lea edi, [eax - 1]
mov edx, dword [ebx + 0x8c]
lea ecx, [edx - 1]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x114]
mov edx, dword [ebx + 0xd0]
xor ecx, ecx
call fcn.00406b38
mov ecx, dword [ebx + 0xe0]
mov dword [esp + 0x114], ecx
mov dword [ebx + 0xc0], ecx
mov edi, dword [0x871f08]
mov ecx, dword [0x871f0c]
mov dword [ebx + 0xe8], edi
mov dword [ebx + 0xec], ecx
cmp byte [ebx + 0xa8], 1
je 0x405a54
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x40582b
movsx ecx, word [ebx + 0xa4]
cmp ecx, 0x100
jl 0x40598b
mov ecx, dword [esp + 0x104]
test ecx, ecx
jne 0x40584d
mov eax, dword [esp + 0xf8]
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.00405fe4
jmp 0x405862
mov eax, dword [esp + 0xe4]
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.00405fe4
mov esi, dword [esi + 0xc]
inc ebp
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x34]
jmp 0x404dd4
mov edi, dword [ebx + 0x88]
mov dword [esp + 0x10c], edi
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x110], ecx
lea ecx, [edi + edi]
add ecx, ecx
cmp edi, 0x2000
jg 0x405cb3
mov edi, ecx
imul edi, dword [esp + 0x110]
lea ecx, [ecx + edi + 4]
push ecx
call fcn.0046ef5c
pop ecx
mov dword [esp + 0x114], eax
mov ecx, eax
test ecx, ecx
je 0x405c7c
mov ecx, dword [esp + 0x114]
test ecx, ecx
jne 0x405c09
mov eax, 0xffffffff
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret
mov edi, dword [ebx + 0x88]
mov dword [esp + 0x110], edi
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x10c], ecx
lea ecx, [edi + edi]
add ecx, ecx
cmp edi, 0x2000
jg 0x405e21
mov edi, ecx
imul edi, dword [esp + 0x10c]
lea ecx, [ecx + edi + 4]
push ecx
call fcn.0046ef5c
pop ecx
mov dword [esp + 0x114], eax
mov ecx, eax
test ecx, ecx
je 0x405dea
mov ecx, dword [esp + 0x114]
test ecx, ecx
jne 0x405d77
mov eax, 0xffffffff
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret
xor eax, eax
mov dword [esp + 0xe4], eax
xor edx, edx
mov dword [esp + 0x104], edx
jmp 0x404b23
xor ebp, ebp
jmp 0x404dba
mov esi, dword [esi + 0xc]
jmp 0x405865
mov esi, dword [esi + 0xc]
jmp 0x405865
mov esi, dword [esi + 0xc]
jmp 0x405865
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0x118]
mov edi, dword [ecx + 0x88]
cmp eax, edi
jne 0x405a19
mov ecx, dword [ebx + 0x8c]
mov edx, dword [esp + 0x118]
mov edx, dword [edx + 0x8c]
cmp ecx, edx
jne 0x405e56
mov eax, ebx
call fcn.0040647c
mov ecx, dword [esp + 0x104]
test ecx, ecx
jne 0x4059f4
lea edi, [esp + 0x94]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xf8]
mov edx, ebx
mov ecx, dword [esp + 0x118]
call fcn.00406104
jmp 0x405862
lea edi, [esp + 0x94]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xe4]
mov edx, ebx
mov ecx, dword [esp + 0x118]
call fcn.00406104
jmp 0x405862
mov ebp, ecx
mov ecx, dword [esp + 0xe8]
mov ebx, dword [ebx + 0x8c]
mov edx, dword [ebp + 0x8c]
push edx
push edi
push dword [ecx + 0x14]
push ebx
push eax
push dword [esi + 0x14]
push 1
push 0x187d6
call fcn.0046bfb0
mov eax, 0xffffffff
add esp, 0x158
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x405a6e
movsx ecx, word [ebx + 0xa4]
cmp ecx, 0x100
jl 0x405aad
mov ecx, dword [esp + 0x104]
test ecx, ecx
jne 0x405a93
mov eax, dword [esp + 0xf8]
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.00406234
jmp 0x405862
mov eax, dword [esp + 0xe4]
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.00406234
jmp 0x405862
mov edx, dword [ebx + 0x88]
mov ecx, dword [esp + 0x118]
mov eax, dword [ecx + 0x88]
cmp edx, eax
jne 0x405b63
mov edi, dword [ebx + 0x8c]
mov ecx, dword [ecx + 0x8c]
cmp edi, ecx
jne 0x405b34
mov eax, ebx
call fcn.0040647c
mov ecx, dword [esp + 0x104]
test ecx, ecx
jne 0x405b0f
lea edi, [esp + 0x94]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xf8]
mov edx, ebx
mov ecx, dword [esp + 0x118]
call fcn.00406354
jmp 0x405862
lea edi, [esp + 0x94]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xe4]
mov edx, ebx
mov ecx, dword [esp + 0x118]
call fcn.00406354
jmp 0x405862
mov ebx, ecx
mov ecx, dword [esp + 0xe8]
push ebx
push eax
push dword [ecx + 0x14]
push edi
push edx
push dword [esi + 0x14]
push 1
push 0x187d6
call fcn.0046bfb0
mov eax, 0xffffffff
add esp, 0x158
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, ecx
mov ecx, dword [esp + 0xe8]
mov edi, dword [ebx + 0x8c]
mov ebx, dword [ebp + 0x8c]
jmp 0x405b3d
mov ecx, dword [esp + 0x110]
push ecx
mov edi, dword [esp + 0x110]
push edi
push 0
push 0x879400
push 0x8782b0
call fcn.00423904
push 0
push 1
push 0x1965e
call fcn.0046bfe0
add esp, 0x20
jmp 0x405770
mov edi, ecx
imul edi, dword [esp + 0x110]
lea ecx, [ecx + edi + 4]
push ecx
call fcn.0046ef5c
pop ecx
mov dword [esp + 0x114], eax
jmp 0x405766
mov ecx, dword [esp + 0x110]
push ecx
mov edi, eax
push edi
push 0x8793d8
push 0x8782b0
call fcn.00409114
push 1
push 0x186aa
call fcn.0046c03c
add esp, 0x18
xor ecx, ecx
mov dword [esp + 0x114], ecx
jmp 0x405770
mov eax, dword [ebx + 0x88]
lea edi, [eax - 1]
mov edx, dword [ebx + 0x8c]
lea ecx, [edx - 1]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x114]
mov edx, dword [ebx + 0xe0]
xor ecx, ecx
call fcn.00406b38
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
je 0x405c6a
push ecx
call fcn.0046f4ee
pop ecx
mov ecx, dword [esp + 0x114]
mov dword [ebx + 0xe0], ecx
jmp 0x4057e2
mov ecx, dword [esp + 0x110]
push ecx
mov edi, dword [esp + 0x110]
push edi
push 0
push 0x879400
push 0x8782b0
call fcn.00423904
push 0
push 1
push 0x1965e
call fcn.0046bfe0
add esp, 0x20
jmp 0x4058c6
mov ecx, dword [esp + 0x110]
push ecx
push edi
push 0x8793d8
push 0x8782b0
call fcn.00409114
push 1
push 0x186aa
call fcn.0046c03c
add esp, 0x18
xor ecx, ecx
mov dword [esp + 0x114], ecx
jmp 0x4058c6
mov ecx, dword [esp + 0x10c]
push ecx
mov edi, dword [esp + 0x114]
push edi
push 0
push 0x879400
push 0x8782b0
call fcn.00423904
push 0
push 1
push 0x1965e
call fcn.0046bfe0
add esp, 0x20
jmp 0x40564d
mov edi, ecx
imul edi, dword [esp + 0x10c]
lea ecx, [ecx + edi + 4]
push ecx
call fcn.0046ef5c
pop ecx
mov dword [esp + 0x114], eax
jmp 0x405643
mov ecx, dword [esp + 0x10c]
push ecx
mov edi, eax
push edi
push 0x8793d8
push 0x8782b0
call fcn.00409114
push 1
push 0x186aa
call fcn.0046c03c
add esp, 0x18
xor ecx, ecx
mov dword [esp + 0x114], ecx
jmp 0x40564d
mov eax, dword [ebx + 0x88]
lea edi, [eax - 1]
mov edx, dword [ebx + 0x8c]
lea ecx, [edx - 1]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x84]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x114]
mov edx, dword [ebx + 0xe0]
xor ecx, ecx
call fcn.00406858
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
je 0x405dd8
push ecx
call fcn.0046f4ee
pop ecx
mov ecx, dword [esp + 0x114]
mov dword [ebx + 0xe0], ecx
jmp 0x4056bf
mov ecx, dword [esp + 0x10c]
push ecx
mov edi, dword [esp + 0x114]
push edi
push 0
push 0x879400
push 0x8782b0
call fcn.00423904
push 0
push 1
push 0x1965e
call fcn.0046bfe0
add esp, 0x20
jmp 0x405936
mov ecx, dword [esp + 0x10c]
push ecx
push edi
push 0x8793d8
push 0x8782b0
call fcn.00409114
push 1
push 0x186aa
call fcn.0046c03c
add esp, 0x18
xor ecx, ecx
mov dword [esp + 0x114], ecx
jmp 0x405936
mov ebx, ecx
mov ecx, dword [esp + 0xe8]
jmp 0x405a2e
xor ecx, ecx
mov dword [esp + 0x118], ecx
jmp 0x4055ad
mov esi, dword [esi + 0xc]
jmp 0x405865
movsx eax, byte [ebx + 0xa9]
test eax, eax
jne 0x404d15
movsx eax, word [ebx + 0xa2]
cmp eax, 0x100
jne 0x404d15
movsx eax, byte [ebx + 0xa8]
test eax, eax
jne 0x404d15
mov eax, dword [ebx + 0x54]
movsx eax, byte [eax]
test eax, eax
jne 0x405f7c
mov eax, dword [esp + 0x108]
test eax, eax
jne 0x404d15
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x120], edx
mov edi, dword [ebx + 0x74]
mov dword [esp + 0x124], edi
mov eax, dword [esp + 0xf8]
sub edx, dword [eax + 0x30]
sbb edi, dword [eax + 0x34]
jl 0x405ef2
or edx, edi
jne 0x404d15
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x128], edx
mov edi, dword [ebx + 0x7c]
mov dword [esp + 0x12c], edi
sub edx, dword [eax + 0x38]
sbb edi, dword [eax + 0x3c]
jl 0x405f16
or edx, edi
jne 0x404d15
mov eax, dword [ebx + 0x88]
cdq
mov edi, dword [esp + 0x120]
add edi, eax
mov eax, dword [esp + 0x124]
adc eax, edx
add edi, 0xffffffff
adc eax, 0xffffffff
mov edx, dword [esp + 0xf8]
sub edi, dword [edx + 0x40]
sbb eax, dword [edx + 0x44]
jl 0x404d15
mov eax, dword [ebx + 0x8c]
cdq
mov ebx, dword [esp + 0x128]
add ebx, eax
mov eax, dword [esp + 0x12c]
adc eax, edx
add ebx, 0xffffffff
adc eax, 0xffffffff
mov edi, dword [esp + 0xf8]
sub ebx, dword [edi + 0x48]
sbb eax, dword [edi + 0x4c]
jl 0x404d15
jmp 0x405f99
je 0x404d15
movsx eax, word [ebx + 0xa4]
cmp eax, 0x100
je 0x405eb8
jmp 0x404d15
mov ebx, dword [esp + 0x130]
jmp 0x404dba
mov eax, 0xffffffff
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, 0xffffffff
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, 0xffffffff
add esp, 0x138
pop ebx
pop ebp
pop esi
pop edi
ret