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

Disassembly:
push 0xffffffffffffffff
push 0x73ae20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov edx, dword [esp + 0x94]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0xd0]
cmp edx, eax
jbe 0x4077a8
mov edx, eax
mov eax, dword [edi + 0xbc]
xor ebp, ebp
cmp eax, ebp
je 0x4087a9
mov ecx, dword [edi + 0xc8]
cmp ecx, edx
jne 0x407856
cmp ecx, ebp
je 0x407856
test dword [edi + 0x80], 0x80000000
je 0x4077ee
mov eax, dword [edi + 0xf8]
push ebp
push eax
mov ecx, edi
call fcn.004087d0
jmp 0x4087a9
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xe4]
cmp eax, ebp
jle 0x4087a9
cmp eax, dword [ecx + 8]
ja 0x4087a9
mov edx, dword [0x76560c]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040aa70
mov ecx, dword [edi + 0xbc]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0xa0], 0
mov edx, dword [ecx]
call dword [edx + 0x9c]
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404760
jmp 0x4087a9
mov ecx, dword [edi + 0x80]
mov dword [edi + 0xc8], edx
test ecx, 0x80000000
je 0x408108
mov eax, dword [edi + 0x90]
xor ebx, ebx
sub eax, dword [edi + 0x88]
xor esi, esi
xor ecx, ecx
cmp dword [edi + 0xec], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], eax
je 0x407bb5
test edx, edx
jbe 0x407bad
mov ecx, dword [esp + 0x18]
mov edx, 0x765608
add ecx, 0xe4
mov eax, dword [ecx + 4]
test eax, eax
je 0x4078c1
lea edx, [eax + ebx]
test byte [edx], 0x80
je 0x4079aa
push 2
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.0040aa70
mov esi, dword [esp + 0x38]
mov dword [esp + 0x9c], 1
test esi, esi
jne 0x4078ef
mov esi, 0x765608
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x6c]
call fcn.004047b0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 2
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x407946
lea edx, [esp + 0x24]
lea eax, [esp + 0x64]
push edx
push 2
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 1
call fcn.00404760
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x407981
mov esi, dword [esp + 0x14]
sub edx, ebp
add edx, eax
mov ebp, eax
add esi, edx
add ebx, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ebx
jmp 0x407994
mov edx, dword [esp + 0x14]
mov ebp, ecx
add edx, eax
add ebx, 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x38]
jmp 0x407b8c
test eax, eax
jne 0x4079b5
mov eax, 0x765608
jmp 0x4079b7
add eax, ebx
mov dl, byte [eax]
push 1
cmp dl, 0xa
push ebx
jne 0x407a8d
lea edx, [esp + 0x8c]
push edx
call fcn.0040aa70
mov esi, dword [esp + 0x88]
mov dword [esp + 0x9c], 3
test esi, esi
jne 0x4079ed
mov esi, 0x765608
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x5c]
call fcn.004047b0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 4
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x407a44
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push 1
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 3
call fcn.00404760
mov eax, dword [esp + 0x20]
cmp ebp, eax
jle 0x407a61
sub ebp, eax
mov edx, dword [esp + 0x14]
sub eax, ebp
add edx, eax
inc ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ebx
xor ebp, ebp
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x88]
jmp 0x407b8c
lea edx, [esp + 0x7c]
push edx
call fcn.0040aa70
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 5
test esi, esi
jne 0x407aaf
mov esi, 0x765608
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x4c]
call fcn.00401450
test al, al
je 0x407b04
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00404970
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 6
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x407b31
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 1
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 5
call fcn.00404760
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x407b6a
mov esi, dword [esp + 0x14]
sub edx, ebp
add edx, eax
mov ebp, eax
add esi, edx
inc ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ebx
jmp 0x407b7b
mov edx, dword [esp + 0x14]
mov ebp, ecx
add edx, eax
inc ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x78]
call fcn.00404760
mov ecx, dword [esp + 0x18]
cmp ebx, dword [ecx + 0xc8]
jb 0x4078a8
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp esi, eax
jl 0x407cd9
mov ebx, dword [esp + 0x20]
mov eax, esi
cdq
idiv ebx
mov edi, eax
mov eax, esi
cdq
idiv ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0xbc]
mov edx, dword [edx + 0xf4]
lea esi, [edx + ecx]
imul esi, edi
mov edi, dword [ebx + 0x94]
sub edi, dword [ebx + 0x8c]
lea eax, [edx + esi]
add eax, ecx
add ecx, edx
sub eax, edi
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebx + 0xf8]
inc edi
cmp edi, eax
jg 0x407c2c
jge 0x407c4d
mov ecx, dword [ebx + 0xc8]
mov edx, dword [ebx + 0xf4]
cmp ecx, edx
jae 0x407c4d
mov edi, dword [esp + 0x2c]
test edi, edi
jge 0x407c2c
xor edi, edi
push 0
push edi
mov ecx, ebx
call fcn.004087d0
mov eax, dword [ebx + 0xbc]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0xf4]
add ecx, edx
imul ecx, edi
jmp 0x407c70
push 0
push eax
mov ecx, ebx
call fcn.004087d0
mov eax, dword [ebx + 0xbc]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0xf4]
add ecx, edx
imul ecx, dword [ebx + 0xf8]
mov edx, dword [esp + 0x1c]
sub esi, ecx
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xc0]
add eax, edx
mov edx, dword [0x7c4dc0]
mov dword [esp + 0x1c], eax
add ecx, esi
fild dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
add ecx, edx
mov dword [esp + 0x1c], ecx
fst dword [0x7c4dcc]
fild dword [esp + 0x2c]
fstp dword [0x7c4dd0]
fstp dword [0x7c4de0]
fild dword [esp + 0x1c]
fstp dword [0x7c4de4]
call fcn.0043b9b0
fstp dword [0x7c4dc4]
mov ebx, dword [esp + 0x30]
mov byte [0x7c4dc8], 1
jmp 0x407d68
mov ecx, dword [edi + 0xbc]
lea eax, [edi + 0xe4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x9c]
mov eax, dword [edi + 0xbc]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xc0]
add eax, edx
mov edx, dword [0x7c4dc0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x1c], ecx
fst dword [0x7c4dcc]
fild dword [esp + 0x2c]
fstp dword [0x7c4dd0]
fstp dword [0x7c4de0]
fild dword [esp + 0x1c]
fstp dword [0x7c4de4]
call fcn.0043b9b0
fstp dword [0x7c4dc4]
xor eax, eax
mov byte [0x7c4dc8], 1
mov dword [edi + 0xf8], eax
mov dword [edi + 0xf4], eax
mov dword [edi + 0xfc], 1
mov ecx, dword [esp + 0x18]
cmp ebx, dword [ecx + 0xec]
jae 0x4080be
mov eax, dword [ecx + 0xe8]
add ecx, 0xe4
test eax, eax
mov edx, 0x765608
je 0x407d90
lea edx, [eax + ebx]
test byte [edx], 0x80
je 0x407e9c
push 2
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.0040aa70
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 7
test esi, esi
jne 0x407dbe
mov esi, 0x765608
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x4c]
call fcn.00401450
test al, al
je 0x407e13
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call fcn.00404970
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 8
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x407e40
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 7
call fcn.00404760
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x407e77
mov esi, dword [esp + 0x14]
sub edx, ebp
add edx, eax
mov ebp, eax
add esi, edx
add ebx, 2
mov dword [esp + 0x14], esi
jmp 0x407e86
mov edx, dword [esp + 0x14]
mov ebp, ecx
add edx, eax
add ebx, 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x78]
jmp 0x40809d
test eax, eax
jne 0x407ea7
mov eax, 0x765608
jmp 0x407ea9
add eax, ebx
mov dl, byte [eax]
push 1
cmp dl, 0xa
push ebx
jne 0x407fa6
lea edx, [esp + 0x8c]
push edx
call fcn.0040aa70
mov esi, dword [esp + 0x88]
mov dword [esp + 0x9c], 9
test esi, esi
jne 0x407edf
mov esi, 0x765608
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401450
test al, al
je 0x407f34
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00404970
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 0xa
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x407f61
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xa0], 9
call fcn.00404760
mov eax, dword [esp + 0x20]
cmp ebp, eax
jle 0x407f7e
sub ebp, eax
mov edx, dword [esp + 0x14]
sub eax, ebp
add edx, eax
inc ebx
mov dword [esp + 0x14], edx
xor ebp, ebp
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x88]
jmp 0x40809d
lea edx, [esp + 0x6c]
push edx
call fcn.0040aa70
mov esi, dword [esp + 0x68]
mov dword [esp + 0x9c], 0xb
test esi, esi
jne 0x407fc8
mov esi, 0x765608
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401450
test al, al
je 0x40801d
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
call fcn.00404970
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 0xc
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x40804a
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push 1
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 0xb
call fcn.00404760
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x40807f
mov esi, dword [esp + 0x14]
sub edx, ebp
add edx, eax
mov ebp, eax
add esi, edx
inc ebx
mov dword [esp + 0x14], esi
jmp 0x40808c
mov edx, dword [esp + 0x14]
mov ebp, ecx
add edx, eax
inc ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x68]
call fcn.00404760
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0xe4]
mov ecx, dword [ecx + 0xec]
cmp ebx, ecx
mov ecx, dword [esp + 0x18]
jb 0x407d78
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x4080f9
mov edx, dword [ecx + 0xbc]
mov ebx, dword [esp + 0x28]
mov esi, dword [edx + 0xf4]
cdq
idiv ebp
lea edi, [esi + ebx]
imul eax, edi
add eax, esi
add eax, ebx
cdq
idiv edi
mov dword [ecx + 0xfc], eax
jmp 0x4087a9
mov dword [ecx + 0xfc], 1
jmp 0x4087a9
mov ecx, dword [edi + 0x90]
xor ebx, ebx
sub ecx, dword [edi + 0x88]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0x80]
lea esi, [edi + 0xe4]
mov dword [esp + 0x14], ebx
test eax, 0x800000
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
jne 0x408148
test eax, 0x200000
je 0x40814e
mov dword [edi + 0xf4], ebx
mov ebx, dword [edi + 0xf4]
cmp ebx, edx
jae 0x4086bc
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4083b8
cmp ebx, edx
jae 0x4083ac
cmp ebx, dword [esp + 0x1c]
jge 0x4083ac
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40818f
mov eax, 0x765608
jmp 0x408191
add eax, ebx
test byte [eax], 0x80
je 0x40827c
push 2
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.0040aa70
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 0xd
test esi, esi
jne 0x4081bf
mov esi, 0x765608
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.00404760
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x48]
push ebp
call fcn.00401450
test al, al
je 0x408210
mov edi, dword [esp + 0x48]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 0xe
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x40823d
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.00438080
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 0xd
call fcn.00404760
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add edx, ecx
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x18], edx
add ebx, 2
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404760
jmp 0x40837f
push 1
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.0040aa70
mov edx, dword [esp + 0x58]
mov dword [esp + 0x9c], 0xf
test edx, edx
jne 0x4082a1
mov edx, 0x765608
mov al, byte [esp + 0x13]
xor esi, esi
mov byte [esp + 0x34], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004047b0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 0x10
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
cmp ecx, esi
je 0x4082fb
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.00438080
mov eax, dword [esp + 0x38]
mov byte [esp + 0x9c], 0xf
cmp eax, esi
je 0x408328
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40831f
cmp al, 0xff
je 0x40831f
dec al
mov byte [ecx], al
jmp 0x408328
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
add edi, ecx
inc ebx
cmp eax, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x9c], 0xffffffff
je 0x408373
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40836a
cmp al, 0xff
je 0x40836a
dec al
mov byte [ecx], al
jmp 0x408373
push ecx
call fcn.00726ea6
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp edx, eax
jle 0x40839a
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40839a
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edi, ecx
cmp ebx, dword [ecx + 0xc8]
jb 0x408173
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
cmp ebp, ecx
jle 0x4086c2
mov ebp, dword [esp + 0x2c]
mov esi, dword [edi + 0xf4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
sub ebx, ebp
mov dword [esp + 0x24], edx
add esi, ebx
xor eax, eax
mov dword [edi + 0xf4], esi
mov edx, dword [ecx + 8]
cmp edx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
je 0x4086c2
cmp dword [edi + 0xbc], eax
je 0x4086c2
mov ecx, dword [edi + 0xc8]
mov byte [esp + 0x13], al
cmp ecx, eax
jbe 0x4086b2
mov ebp, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x408427
mov eax, 0x765608
jmp 0x408429
add eax, ebx
test byte [eax], 0x80
je 0x408542
push 2
lea edx, [esp + 0x58]
push ebx
push edx
mov ecx, ebp
call fcn.0040aa70
mov edx, dword [esp + 0x58]
mov dword [esp + 0x9c], 0x11
test edx, edx
jne 0x408459
mov edx, 0x765608
mov al, byte [esp + 0x13]
xor esi, esi
mov byte [esp + 0x44], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.004047b0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x9c], 0x12
mov eax, dword [edi + 0xbc]
mov ecx, dword [eax + 0xbc]
cmp ecx, esi
je 0x4084b3
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.00438080
mov eax, dword [esp + 0x48]
mov byte [esp + 0x9c], 0x11
cmp eax, esi
je 0x4084e0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4084d7
cmp al, 0xff
je 0x4084d7
dec al
mov byte [ecx], al
jmp 0x4084e0
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add eax, ecx
add ebx, 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x9c], 0xffffffff
je 0x408531
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408528
cmp al, 0xff
je 0x408528
dec al
mov byte [ecx], al
jmp 0x408531
push ecx
call fcn.00726ea6
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
jmp 0x408683
push 1
lea edx, [esp + 0x68]
push ebx
push edx
mov ecx, ebp
call fcn.0040aa70
mov esi, dword [esp + 0x68]
mov dword [esp + 0x9c], 0x13
test esi, esi
jne 0x408569
mov esi, 0x765608
mov al, byte [esp + 0x13]
xor ebx, ebx
mov byte [esp + 0x34], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00401450
test al, al
je 0x4085bc
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 0x14
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
cmp ecx, ebx
je 0x4085e9
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.00438080
mov eax, dword [esp + 0x38]
mov byte [esp + 0x9c], 0x13
cmp eax, ebx
je 0x408616
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40860d
cmp al, 0xff
je 0x40860d
dec al
mov byte [ecx], al
jmp 0x408616
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
add esi, ecx
inc edx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x9c], 0xffffffff
je 0x408669
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408660
cmp al, 0xff
je 0x408660
dec al
mov byte [ecx], al
jmp 0x408669
push ecx
call fcn.00726ea6
add esp, 4
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp ebx, dword [edi + 0xf4]
jl 0x4086a2
mov al, byte [esp + 0x13]
test al, al
jne 0x4086a2
mov byte [esp + 0x13], 1
mov dword [edi + 0xf4], ebx
mov dword [esp + 0x14], esi
cmp ebx, dword [edi + 0xc8]
jb 0x408419
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
jmp 0x4086c2
mov dword [edi + 0xf4], edx
mov eax, dword [edi + 0xf4]
mov ecx, dword [esp + 0x30]
test eax, eax
jle 0x408736
cmp eax, dword [ecx + 8]
ja 0x408736
mov edx, dword [0x76560c]
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0040aa70
mov ecx, dword [edi + 0xbc]
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0xa0], 0x15
mov edx, dword [ecx]
call dword [edx + 0x9c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x9c], 0xffffffff
test ecx, ecx
je 0x408747
mov al, byte [ecx - 1]
test al, al
je 0x40872a
cmp al, 0xff
je 0x40872a
dec al
mov byte [ecx - 1], al
jmp 0x408747
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
jmp 0x408747
mov eax, dword [edi + 0xbc]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x9c]
mov edi, dword [edi + 0xbc]
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0xc0]
mov eax, dword [edi + 0xc4]
add ecx, edx
mov edx, dword [0x7c4dc0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x1c], eax
fst dword [0x7c4dcc]
fild dword [esp + 0x2c]
fstp dword [0x7c4dd0]
fstp dword [0x7c4de0]
fild dword [esp + 0x1c]
fstp dword [0x7c4de4]
call fcn.0043b9b0
fstp dword [0x7c4dc4]
mov byte [0x7c4dc8], 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4