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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429fa1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2e04
call fcn.00415e50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2e00], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2e18]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x20], eax
push dword [eax + 0x434]
mov edi, dword [eax + 0x1480]
push dword [eax + 0x420]
mov dword [esp + 0x1e8], 0x433608
mov dword [esp + 0x1ec], 0x433618
mov dword [esp + 0x1f0], 0x433628
mov dword [esp + 0x1f4], 0x433638
mov dword [esp + 0x1f8], 0x433644
mov dword [esp + 0x1fc], 0x433654
mov dword [esp + 0x200], 0x433660
mov dword [esp + 0x204], 0x43366c
mov dword [esp + 0x208], 0x433678
mov dword [esp + 0x20c], 0x43368c
mov dword [esp + 0x210], 0x43369c
mov byte [esp + 0x37], 0
call dword [0x42b04c]
push 0x10d4
call fcn.00412002
add esp, 4
mov dword [esp + 0x18], eax
push 0x10d4
push 0
push eax
call fcn.00415320
lea esi, [esp + 0x1ec]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x24], esi
nop
push 0x400
lea eax, [esp + 0x210]
add eax, ebx
push 0
push eax
call fcn.00415320
mov esi, dword [esi]
add esp, 0xc
push esi
push edi
call fcn.00412090
mov edi, eax
add esp, 8
test edi, edi
je 0x40849e
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407952
sub esi, ecx
add edi, esi
push 0x4336ac
push edi
call fcn.00412090
mov edx, eax
add esp, 8
mov dword [esp + 0x14], edx
test edx, edx
jne 0x407a4b
test edi, edi
je 0x407a2e
mov esi, edi
mov dword [esp + 0x14], edi
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x407990
sub esi, ecx
cmp esi, 0x3ff
jg 0x4079c0
push esi
lea eax, [esp + 0x210]
add eax, ebx
push edi
push eax
call fcn.00416020
lea eax, [ebx + esi]
add esp, 0xc
mov byte [esp + eax + 0x20c], 0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
add ebx, 0x400
add esi, 4
mov dword [esp + 0x24], esi
cmp ebx, 0x2c00
jl 0x407920
lea eax, [esp + 0x20c]
push eax
call fcn.0041242b
mov edi, dword [esp + 0x1c]
add esp, 4
mov byte [edi + 0x1024], al
lea eax, [esp + 0x120c]
push eax
call fcn.0041242b
mov byte [edi + 0x1025], al
add esp, 4
mov byte [edi + 0x102d], al
mov al, byte [edi + 0x1025]
cmp al, 3
je 0x407a85
cmp al, 4
jne 0x407a83
mov byte [edi + 0x1025], 2
jmp 0x407a8c
push 0x4332dc
push 0
call fcn.00412090
mov edx, eax
mov dword [esp + 0x1c], eax
add esp, 8
test edx, edx
je 0x40849e
mov esi, edx
sub esi, edi
cmp esi, 0x3ff
jg 0x4079c0
push esi
lea eax, [esp + 0x210]
add eax, ebx
push edi
push eax
call fcn.00416020
lea eax, [ebx + esi]
mov dword [esp + 0x20], edi
add esp, 0xc
mov byte [esp + eax + 0x20c], 0
jmp 0x4079c4
jbe 0x407a8c
mov byte [edi + 0x1025], 1
cmp byte [esp + 0x60c], 9
lea ecx, [esp + 0x60c]
jne 0x407aa6
lea ecx, [ecx]
inc ecx
cmp byte [ecx], 9
je 0x407aa0
lea edx, [esp + 0x60c]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x407ab0
lea ecx, [esp + 0x60c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407ac7
sub ecx, edx
lea eax, [ecx - 1]
cmp byte [esp + eax + 0x60c], 9
jne 0x407aef
lea ecx, [ecx]
test eax, eax
js 0x407aef
dec eax
cmp byte [esp + eax + 0x60c], 9
je 0x407ae0
lea ecx, [esp + 0x60c]
mov byte [esp + eax + 0x60d], 0
push ecx
lea eax, [edi + 0x400]
push 0x400
push eax
call fcn.00411c67
add esp, 0xc
lea eax, [esp + 0xa0c]
lea ebx, [edi + 0x800]
push eax
push 0x400
push ebx
call fcn.00411c67
add esp, 0xc
lea eax, [esp + 0xe0c]
push eax
push 0x400
push edi
call fcn.00411c67
add esp, 0xc
lea ecx, [esp + 0x2a0c]
lea eax, [edi + 0x1044]
push 0x7f
push ecx
push 0x80
push eax
call fcn.00411cbc
add esp, 0x10
mov ecx, 0x4334b8
mov eax, ebx
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b90
test dl, dl
je 0x407b8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b90
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b70
xor eax, eax
jmp 0x407b95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407bab
lea ecx, [esp + 0xe0c]
call fcn.004037f0
mov dword [edi + 0x10c8], eax
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407bb0
lea eax, [esp + 0x160c]
sub esi, ecx
push eax
mov dword [edi + 0x1000], esi
call fcn.0041242b
add esp, 4
mov edi, eax
lea eax, [esp + 0x1a0c]
push eax
call fcn.0041242b
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x430]
push dword [eax + 0x420]
call dword [0x42b04c]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
push esi
add eax, 0x800
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x420]
call dword [0x42b020]
mov ecx, dword [esp + 0x18]
lea esi, [ebx + 0x10]
push esi
lea eax, [edi + 0x14]
add ecx, 0x1004
push eax
push ebx
push edi
push ecx
call dword [0x42b2ec]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x102d], 3
jne 0x407c65
mov eax, dword [esp + 0x40]
push esi
add eax, 0x14
add eax, edi
push eax
push ebx
mov ebx, dword [esp + 0x24]
push edi
lea eax, [ebx + 0x1014]
push eax
call dword [0x42b2ec]
mov edi, dword [esp + 0x20]
jmp 0x407cd6
mov ebx, dword [esp + 0x18]
lea edi, [ebx + 0x1044]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407c74
mov eax, dword [esp + 0x20]
sub esi, ecx
push dword [eax + 0x428]
push dword [eax + 0x420]
call dword [0x42b04c]
lea eax, [esp + 0x40]
push eax
push esi
push edi
mov edi, dword [esp + 0x2c]
push dword [edi + 0x420]
call dword [0x42b020]
mov ecx, dword [ebx + 0x1008]
mov edx, dword [ebx + 0x1004]
lea eax, [ecx + 0x10]
push eax
mov eax, dword [esp + 0x44]
add eax, edx
push eax
lea eax, [ecx - 0x22]
push eax
lea eax, [edx - 0x32]
push eax
lea eax, [ebx + 0x1014]
push eax
call dword [0x42b2ec]
lea eax, [esp + 0x1e0c]
push eax
call fcn.0041242b
add esp, 4
mov byte [ebx + 0x102c], al
lea ecx, [esp + 0x220c]
lea eax, [ebx + 0xc00]
push ecx
push 0x400
push eax
call fcn.00411c67
add esp, 0xc
push dword [edi + 0x424]
call dword [0x42b010]
push 0x30
push 0x30
mov dword [ebx + 0x10c4], eax
push dword [edi + 0x424]
call dword [0x42b040]
mov esi, eax
push esi
push dword [ebx + 0x10c4]
call dword [0x42b04c]
push esi
call dword [0x42b050]
push dword [0x489954]
movdqa xmm0, xmmword [0x433f30]
lea eax, [esp + 0x1d4]
push eax
movdqu xmmword [esp + 0x1d8], xmm0
push dword [ebx + 0x10c4]
call dword [0x42b2a4]
cmp byte [esp + 0x260c], 0
jne 0x407e81
mov ecx, dword [edi + 0x618]
lea esi, [edi + 0x614]
lea eax, [esp + 0x18]
cmp eax, ecx
jae 0x407e13
mov ebx, dword [esi]
cmp ebx, eax
ja 0x407e13
mov edx, dword [esi + 8]
lea edi, [esp + 0x18]
sub edi, ebx
sar edi, 2
cmp ecx, edx
jne 0x407df8
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x407df8
sub ecx, ebx
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4080c7
inc ecx
sub edx, ebx
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x28], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x407de5
xor edx, edx
jmp 0x407de7
add edx, ecx
cmp edx, dword [esp + 0x28]
mov ecx, esi
cmovb edx, dword [esp + 0x28]
push edx
call fcn.0040c830
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407e06
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
add dword [esi + 4], 4
mov edi, dword [esp + 0x14]
jmp 0x4078f1
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x407e67
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x407e67
mov edi, dword [esi]
mov eax, 0x3fffffff
sub ecx, edi
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4080c7
sub edx, edi
lea ebx, [ecx + 1]
sar edx, 2
mov eax, 0x3fffffff
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x407e58
xor edx, edx
jmp 0x407e5a
add edx, ecx
cmp edx, ebx
mov ecx, esi
cmovb edx, ebx
push edx
call fcn.0040c830
mov eax, dword [esi + 4]
test eax, eax
je 0x407e74
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
add dword [esi + 4], 4
mov edi, dword [esp + 0x14]
jmp 0x4078f1
cmp byte [esp + 0x2f], 0
jne 0x408036
mov esi, dword [0x48779c]
push 0x340
mov byte [esp + 0x33], 1
call fcn.00412002
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407ec3
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x134], 0xffffffff
jmp 0x407ec5
xor ebx, ebx
cmp dword [ebx], 0
jne 0x407f37
cmp dword [ebx + 4], 0xffffffff
jne 0x407f37
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [0x42b0d8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x407ee5
mov eax, dword [0x4334b0]
push 0x1c
mov dword [edi], eax
mov dword [esp + 0x2c], 0
call fcn.00412002
add esp, 4
mov ecx, eax
mov word [eax], pe_nt_image_headers32
mov dword [eax + 0x10], 0x438374
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.004100f0
mov dword [ebx], eax
mov eax, dword [0x489948]
jmp 0x407f3c
mov eax, 0x1000000
mov dword [0x489944], eax
test eax, eax
je 0x407f52
push ebx
call fcn.00411712
add esp, 4
xor esi, esi
jmp 0x407f67
push 8
call fcn.00412002
mov esi, eax
add esp, 4
mov dword [esi], 1
mov dword [esi + 4], ebx
test esi, esi
je 0x40847c
mov ebx, dword [esp + 0x20]
xor edi, edi
add ebx, 0x824
jmp 0x407f80
cmp dword [esi], 1
jne 0x408020
mov ecx, dword [esi + 4]
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.00410e50
mov dword [0x489944], eax
test eax, eax
jne 0x40802a
push 0x104
call fcn.00412078
add esp, 4
mov dword [ebx - 0x200], eax
lea ecx, [esp + 0xa0]
push ecx
push 0x104
push eax
call fcn.00411c67
add esp, 0xc
push dword [esp + 0x1c4]
call fcn.00412078
mov ecx, dword [esp + 0x1c8]
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 0x200], ecx
cmp dword [esi], 1
je 0x408006
inc edi
mov dword [0x489944], 0x80000
add ebx, 4
jmp 0x407f80
push ecx
push ecx
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00411520
inc edi
mov dword [0x489944], eax
add ebx, 4
jmp 0x407f80
mov dword [0x489944], 0x80000
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0xc24], edi
jmp 0x40803a
mov ebx, dword [esp + 0x20]
xor edi, edi
cmp dword [ebx + 0xc24], edi
jle 0x408077
lea esi, [ebx + 0x624]
lea ebx, [ebx]
mov eax, dword [esi]
test eax, eax
je 0x40806b
push eax
lea eax, [esp + 0x2610]
push eax
call fcn.00411b8b
add esp, 8
test eax, eax
je 0x4080d1
inc edi
add esi, 4
cmp edi, dword [ebx + 0xc24]
jl 0x408050
mov ecx, dword [ebx + 0x618]
lea esi, [ebx + 0x614]
lea eax, [esp + 0x18]
cmp eax, ecx
jae 0x408095
mov ebx, dword [esi]
cmp ebx, eax
jbe 0x407d97
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x407e67
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x407e67
mov edi, dword [esi]
mov eax, 0x3fffffff
sub ecx, edi
sar ecx, 2
sub eax, ecx
cmp eax, 1
jae 0x407e3d
push 0x433be4
call fcn.004280be
mov eax, dword [0x489998]
xorps xmm0, xmm0
mov dword [esp + 0x58], 0x432fc8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov word [esp + 0x74], 0
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
movdqu xmmword [esp + 0x5c], xmm0
test al, 1
jne 0x40818e
push 0
or eax, 1
mov dword [0x489974], 0
push 0x489978
mov dword [0x489998], eax
mov dword [0x489990], 0
mov dword [0x489994], 0
call dword [0x42b1c0]
test eax, eax
jne 0x408181
call dword [0x42b1c4]
test eax, eax
jle 0x40817c
movzx eax, ax
or eax, 0x80070000
mov dword [0x489994], eax
push 0x42a090
call fcn.00411ab5
add esp, 4
push 0x489978
call dword [0x42b1bc]
inc dword [0x489990]
push 0x489978
call dword [0x42b1b8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x2e20], 0
push eax
push 1
push 0
call dword [0x42b38c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x408495
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push ecx
call dword [eax + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push dword [ebx + edi*4 + 0xa24]
push dword [ebx + edi*4 + 0x824]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [0x489998]
mov esi, dword [esp + 0x1c]
test al, 1
jne 0x408260
push 0
or eax, 1
mov dword [0x489974], 0
push 0x489978
mov dword [0x489998], eax
mov dword [0x489990], 0
mov dword [0x489994], 0
call dword [0x42b1c0]
test eax, eax
jne 0x408253
call dword [0x42b1c4]
test eax, eax
jle 0x40824e
movzx eax, ax
or eax, 0x80070000
mov dword [0x489994], eax
push 0x42a090
call fcn.00411ab5
add esp, 4
cmp dword [0x489994], 0
jne 0x40848b
push 0x489978
call dword [0x42b1bc]
cmp dword [0x489974], 0
mov bl, 1
jne 0x4082d1
lea eax, [esp + 0x34]
mov dword [esp + 0x8c], 1
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x94], 0
push eax
push 0x489974
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call dword [0x42b34c]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
push 0x489978
call dword [0x42b1b8]
test bl, bl
je 0x40848b
lea eax, [esp + 0x24]
mov dword [esp + 0x48], 0x432fd0
push eax
push esi
mov dword [esp + 0x2c], 0
call dword [0x42b35c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
test eax, eax
jne 0x408484
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.00401620
push dword [esp + 0x4c]
mov esi, eax
mov dword [esp + 0x4c], 0x432fdc
call dword [0x42b378]
test esi, esi
jne 0x40848b
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
push ecx
push eax
sub esp, 8
push ecx
push eax
push esi
push esi
push dword [edi + 0x10c4]
lea ecx, [esp + 0x7c]
call fcn.004061d0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
add esi, 0x614
mov ecx, dword [esi + 4]
cmp eax, ecx
jae 0x4083fa
mov ebx, dword [esi]
cmp ebx, eax
ja 0x4083fa
mov edx, dword [esi + 8]
mov edi, eax
sub edi, ebx
sar edi, 2
cmp ecx, edx
jne 0x4083ea
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x4083ea
sub ecx, ebx
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4080c7
inc ecx
sub edx, ebx
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x28], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x4083d7
xor edx, edx
jmp 0x4083d9
add edx, ecx
cmp edx, dword [esp + 0x28]
mov ecx, esi
cmovb edx, dword [esp + 0x28]
push edx
call fcn.0040c830
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x40845b
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x40845b
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x408452
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x408452
mov edi, dword [esi]
mov eax, 0x3fffffff
sub ecx, edi
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4080c7
sub edx, edi
lea ebx, [ecx + 1]
sar edx, 2
mov eax, 0x3fffffff
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40843f
xor edx, edx
jmp 0x408441
add edx, ecx
cmp edx, ebx
mov ecx, esi
cmovb edx, ebx
push edx
call fcn.0040c830
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x40845b
mov dword [eax], edi
add dword [esi + 4], 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x2e20], 0xffffffff
call fcn.004013a0
mov edi, dword [esp + 0x14]
jmp 0x4078f1
push 0
call dword [0x42b08c]
push ecx
call dword [0x42b378]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x58]
call fcn.004013a0
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x50], edi
mov eax, dword [ecx + 0x618]
sub eax, dword [ecx + 0x614]
sar eax, 2
mov dword [esp + 0x28], eax
xor eax, eax
mov byte [ecx + 0x60f], 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x2e20], 1
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2e20], 2
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x28], ebx
jbe 0x4087b5
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x618]
sub eax, dword [edx + 0x614]
sar eax, 2
cmp eax, dword [esp + 0x40]
jbe 0x408916
mov esi, edx
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x614]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
test eax, eax
je 0x408795
cmp byte [eax + 0x102c], 0
jne 0x408690
add eax, 0x1004
push eax
call dword [0x42b298]
mov eax, dword [esp + 0x14]
add eax, 0x1014
push eax
call dword [0x42b298]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
cmp ecx, ebx
mov ecx, dword [esp + 0x48]
mov byte [eax + 0x1024], 0
jae 0x408623
lea edx, [esp + 0x30]
cmp ecx, edx
ja 0x408623
mov eax, edx
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp ebx, edi
jne 0x40860e
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40860a
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x4080c7
sub edi, ecx
mov eax, 0x3fffffff
sar edi, 2
inc ebx
mov ecx, edi
shr ecx, 1
sub eax, ecx
cmp eax, edi
jae 0x4085ed
xor edi, edi
jmp 0x4085ef
add edi, ecx
cmp edi, ebx
lea ecx, [esp + 0x48]
cmovb edi, ebx
push edi
call fcn.0040c830
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x408617
mov eax, dword [ecx + eax*4]
mov dword [ebx], eax
add ebx, 4
mov dword [esp + 0x4c], ebx
jmp 0x408795
cmp ebx, edi
jne 0x40867e
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x40867a
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x4080c7
sub edi, ecx
mov eax, 0x3fffffff
sar edi, 2
inc ebx
mov ecx, edi
shr ecx, 1
sub eax, ecx
cmp eax, edi
jae 0x408661
xor edi, edi
jmp 0x408663
add edi, ecx
cmp edi, ebx
lea ecx, [esp + 0x48]
cmovb edi, ebx
push edi
call fcn.0040c830
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x408684
mov dword [ebx], eax
add ebx, 4
mov dword [esp + 0x4c], ebx
jmp 0x408795
lea eax, [esp + 0x30]
cmp eax, esi
mov eax, dword [esp + 0x14]
jae 0x408725
lea eax, [esp + 0x30]
cmp edx, eax
mov eax, dword [esp + 0x14]
ja 0x408725
lea eax, [esp + 0x30]
sub eax, edx
sar eax, 2
mov dword [esp + 0x1c], eax
cmp esi, ecx
jne 0x40871c
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x408718
sub esi, edx
mov eax, 0x3fffffff
sar esi, 2
sub eax, esi
cmp eax, 1
jb 0x4080c7
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc esi
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x4086f7
xor ecx, ecx
jmp 0x4086f9
add ecx, edx
cmp ecx, esi
cmovb ecx, esi
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c830
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
test esi, esi
je 0x40878a
mov eax, dword [edx + eax*4]
jmp 0x408788
cmp esi, ecx
jne 0x408784
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x408780
sub esi, edx
mov eax, 0x3fffffff
sar esi, 2
sub eax, esi
cmp eax, 1
jb 0x4080c7
sub ecx, edx
mov eax, 0x3fffffff
sar ecx, 2
inc esi
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x408763
xor ecx, ecx
jmp 0x408765
add ecx, edx
cmp ecx, esi
cmovb ecx, esi
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c830
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test esi, esi
je 0x40878a
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x28]
jae 0x4087ad
mov ecx, dword [esp + 0x24]
jmp 0x408510
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x4088d0
sub esi, edx
mov dword [esp + 0x24], 0
sar esi, 2
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], edi
test esi, esi
je 0x4088d0
cmp esi, edi
jbe 0x408916
mov edi, dword [edx + edi*4]
mov dword [esp + 0x28], edi
test edi, edi
je 0x4088bf
cmp byte [edi + 0x102d], 6
jne 0x408812
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x60e], 0
jne 0x4088bf
lea eax, [edi + 0xc00]
push eax
call fcn.0040b990
test al, al
je 0x4088bb
mov edx, dword [esp + 0x24]
cmp edx, ebx
jae 0x4088d0
cmp ebx, edx
jbe 0x408916
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4088b6
mov al, byte [edi + 0x102c]
mov byte [ecx + 0x102c], al
mov al, byte [edi + 0x1024]
add edi, 0x1004
mov byte [ecx + 0x1024], al
lea eax, [ecx + 0x1004]
push edi
push eax
call dword [0x42b29c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add esi, 0x1014
push esi
add eax, 0x1014
push eax
call dword [0x42b29c]
push edi
mov edi, dword [0x42b298]
call edi
push esi
call edi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov byte [eax + 0x1024], 0
mov byte [eax + 0x102c], 0
inc edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
inc edi
mov dword [esp + 0x40], edi
cmp esi, edi
ja 0x4087e9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4088e1
push eax
call fcn.00411712
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4088f2
push eax
call fcn.00411712
add esp, 4
mov ecx, dword [esp + 0x2e18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e00]
xor ecx, esp
call fcn.00411717
mov esp, ebp
pop ebp
ret
push 0x433bc8
call fcn.004280ec
int3