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

Disassembly:
push 0xffffffffffffffff
push 0x7b4de0
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 0x407fd8
mov edx, eax
mov eax, dword [edi + 0xbc]
xor ebp, ebp
cmp eax, ebp
je 0x408fd9
mov ecx, dword [edi + 0xc8]
cmp ecx, edx
jne 0x408086
cmp ecx, ebp
je 0x408086
test dword [edi + 0x80], 0x80000000
je 0x40801e
mov eax, dword [edi + 0xf8]
push ebp
push eax
mov ecx, edi
call fcn.00409000
jmp 0x408fd9
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xe4]
cmp eax, ebp
jle 0x408fd9
cmp eax, dword [ecx + 8]
ja 0x408fd9
mov edx, dword [0x7e565c]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040b2a0
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.00404e60
jmp 0x408fd9
mov ecx, dword [edi + 0x80]
mov dword [edi + 0xc8], edx
test ecx, 0x80000000
je 0x408938
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 0x4083e5
test edx, edx
jbe 0x4083dd
mov ecx, dword [esp + 0x18]
mov edx, 0x7e5658
add ecx, 0xe4
mov eax, dword [ecx + 4]
test eax, eax
je 0x4080f1
lea edx, [eax + ebx]
test byte [edx], 0x80
je 0x4081da
push 2
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.0040b2a0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x9c], 1
test esi, esi
jne 0x40811f
mov esi, 0x7e5658
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.00404e60
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.00404eb0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 2
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x408176
lea edx, [esp + 0x24]
lea eax, [esp + 0x64]
push edx
push 2
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 1
call fcn.00404e60
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x4081b1
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 0x4081c4
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 0x4083bc
test eax, eax
jne 0x4081e5
mov eax, 0x7e5658
jmp 0x4081e7
add eax, ebx
mov dl, byte [eax]
push 1
cmp dl, 0xa
push ebx
jne 0x4082bd
lea edx, [esp + 0x8c]
push edx
call fcn.0040b2a0
mov esi, dword [esp + 0x88]
mov dword [esp + 0x9c], 3
test esi, esi
jne 0x40821d
mov esi, 0x7e5658
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.00404e60
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.00404eb0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 4
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x408274
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push 1
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 3
call fcn.00404e60
mov eax, dword [esp + 0x20]
cmp ebp, eax
jle 0x408291
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 0x4083bc
lea edx, [esp + 0x7c]
push edx
call fcn.0040b2a0
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 5
test esi, esi
jne 0x4082df
mov esi, 0x7e5658
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.00404e60
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.00401b40
test al, al
je 0x408334
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.00405070
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 6
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x408361
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 1
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 5
call fcn.00404e60
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x40839a
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 0x4083ab
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.00404e60
mov ecx, dword [esp + 0x18]
cmp ebx, dword [ecx + 0xc8]
jb 0x4080d8
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 0x408509
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 + 0xf8]
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 0x40845c
jge 0x40847d
mov ecx, dword [ebx + 0xc8]
mov edx, dword [ebx + 0xf4]
cmp ecx, edx
jae 0x40847d
mov edi, dword [esp + 0x2c]
test edi, edi
jge 0x40845c
xor edi, edi
push 0
push edi
mov ecx, ebx
call fcn.00409000
mov eax, dword [ebx + 0xbc]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0xf8]
add ecx, edx
imul ecx, edi
jmp 0x4084a0
push 0
push eax
mov ecx, ebx
call fcn.00409000
mov eax, dword [ebx + 0xbc]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0xf8]
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 [0x870c48]
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 [0x870c54]
fild dword [esp + 0x2c]
fstp dword [0x870c58]
fstp dword [0x870c68]
fild dword [esp + 0x1c]
fstp dword [0x870c6c]
call fcn.00441450
fstp dword [0x870c4c]
mov ebx, dword [esp + 0x30]
mov byte [0x870c50], 1
jmp 0x408598
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 [0x870c48]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x1c], ecx
fst dword [0x870c54]
fild dword [esp + 0x2c]
fstp dword [0x870c58]
fstp dword [0x870c68]
fild dword [esp + 0x1c]
fstp dword [0x870c6c]
call fcn.00441450
fstp dword [0x870c4c]
xor eax, eax
mov byte [0x870c50], 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 0x4088ee
mov eax, dword [ecx + 0xe8]
add ecx, 0xe4
test eax, eax
mov edx, 0x7e5658
je 0x4085c0
lea edx, [eax + ebx]
test byte [edx], 0x80
je 0x4086cc
push 2
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.0040b2a0
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 7
test esi, esi
jne 0x4085ee
mov esi, 0x7e5658
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.00404e60
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.00401b40
test al, al
je 0x408643
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.00405070
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 8
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x408670
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 7
call fcn.00404e60
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x4086a7
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 0x4086b6
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 0x4088cd
test eax, eax
jne 0x4086d7
mov eax, 0x7e5658
jmp 0x4086d9
add eax, ebx
mov dl, byte [eax]
push 1
cmp dl, 0xa
push ebx
jne 0x4087d6
lea edx, [esp + 0x8c]
push edx
call fcn.0040b2a0
mov esi, dword [esp + 0x88]
mov dword [esp + 0x9c], 9
test esi, esi
jne 0x40870f
mov esi, 0x7e5658
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00404e60
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.00401b40
test al, al
je 0x408764
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.00405070
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 0xa
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x408791
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xa0], 9
call fcn.00404e60
mov eax, dword [esp + 0x20]
cmp ebp, eax
jle 0x4087ae
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 0x4088cd
lea edx, [esp + 0x6c]
push edx
call fcn.0040b2a0
mov esi, dword [esp + 0x68]
mov dword [esp + 0x9c], 0xb
test esi, esi
jne 0x4087f8
mov esi, 0x7e5658
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.00404e60
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.00401b40
test al, al
je 0x40884d
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.00405070
mov eax, dword [esp + 0x18]
mov byte [esp + 0x9c], 0xc
mov eax, dword [eax + 0xbc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x40887a
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push 1
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 0xb
call fcn.00404e60
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
cmp ecx, edx
jle 0x4088af
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 0x4088bc
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.00404e60
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0xe4]
mov ecx, dword [ecx + 0xec]
cmp ebx, ecx
mov ecx, dword [esp + 0x18]
jb 0x4085a8
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x408929
mov edx, dword [ecx + 0xbc]
mov ebx, dword [esp + 0x28]
mov esi, dword [edx + 0xf8]
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 0x408fd9
mov dword [ecx + 0xfc], 1
jmp 0x408fd9
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 0x408978
test eax, 0x200000
je 0x40897e
mov dword [edi + 0xf4], ebx
mov ebx, dword [edi + 0xf4]
cmp ebx, edx
jae 0x408eec
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408be8
cmp ebx, edx
jae 0x408bdc
cmp ebx, dword [esp + 0x1c]
jge 0x408bdc
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4089bf
mov eax, 0x7e5658
jmp 0x4089c1
add eax, ebx
test byte [eax], 0x80
je 0x408aac
push 2
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.0040b2a0
mov esi, dword [esp + 0x78]
mov dword [esp + 0x9c], 0xd
test esi, esi
jne 0x4089ef
mov esi, 0x7e5658
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
call fcn.00404e60
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.00401b40
test al, al
je 0x408a40
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 0x408a6d
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.0043dbb0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 0xd
call fcn.00404e60
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.00404e60
jmp 0x408baf
push 1
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.0040b2a0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x9c], 0xf
test edx, edx
jne 0x408ad1
mov edx, 0x7e5658
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.00404eb0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x9c], 0x10
mov eax, dword [ecx + 0xbc]
mov ecx, dword [eax + 0xbc]
cmp ecx, esi
je 0x408b2b
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.0043dbb0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x9c], 0xf
cmp eax, esi
je 0x408b58
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408b4f
cmp al, 0xff
je 0x408b4f
dec al
mov byte [ecx], al
jmp 0x408b58
push ecx
call fcn.007a02e0
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 0x408ba3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408b9a
cmp al, 0xff
je 0x408b9a
dec al
mov byte [ecx], al
jmp 0x408ba3
push ecx
call fcn.007a02e0
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 0x408bca
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x408bca
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edi, ecx
cmp ebx, dword [ecx + 0xc8]
jb 0x4089a3
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
cmp ebp, ecx
jle 0x408ef2
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 0x408ef2
cmp dword [edi + 0xbc], eax
je 0x408ef2
mov ecx, dword [edi + 0xc8]
mov byte [esp + 0x13], al
cmp ecx, eax
jbe 0x408ee2
mov ebp, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x408c57
mov eax, 0x7e5658
jmp 0x408c59
add eax, ebx
test byte [eax], 0x80
je 0x408d72
push 2
lea edx, [esp + 0x58]
push ebx
push edx
mov ecx, ebp
call fcn.0040b2a0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x9c], 0x11
test edx, edx
jne 0x408c89
mov edx, 0x7e5658
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.00404eb0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x9c], 0x12
mov eax, dword [edi + 0xbc]
mov ecx, dword [eax + 0xbc]
cmp ecx, esi
je 0x408ce3
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push 2
push eax
call fcn.0043dbb0
mov eax, dword [esp + 0x48]
mov byte [esp + 0x9c], 0x11
cmp eax, esi
je 0x408d10
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408d07
cmp al, 0xff
je 0x408d07
dec al
mov byte [ecx], al
jmp 0x408d10
push ecx
call fcn.007a02e0
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 0x408d61
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408d58
cmp al, 0xff
je 0x408d58
dec al
mov byte [ecx], al
jmp 0x408d61
push ecx
call fcn.007a02e0
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
jmp 0x408eb3
push 1
lea edx, [esp + 0x68]
push ebx
push edx
mov ecx, ebp
call fcn.0040b2a0
mov esi, dword [esp + 0x68]
mov dword [esp + 0x9c], 0x13
test esi, esi
jne 0x408d99
mov esi, 0x7e5658
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.00401b40
test al, al
je 0x408dec
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 0x408e19
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.0043dbb0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x9c], 0x13
cmp eax, ebx
je 0x408e46
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408e3d
cmp al, 0xff
je 0x408e3d
dec al
mov byte [ecx], al
jmp 0x408e46
push ecx
call fcn.007a02e0
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 0x408e99
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408e90
cmp al, 0xff
je 0x408e90
dec al
mov byte [ecx], al
jmp 0x408e99
push ecx
call fcn.007a02e0
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 0x408ed2
mov al, byte [esp + 0x13]
test al, al
jne 0x408ed2
mov byte [esp + 0x13], 1
mov dword [edi + 0xf4], ebx
mov dword [esp + 0x14], esi
cmp ebx, dword [edi + 0xc8]
jb 0x408c49
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
jmp 0x408ef2
mov dword [edi + 0xf4], edx
mov eax, dword [edi + 0xf4]
mov ecx, dword [esp + 0x30]
test eax, eax
jle 0x408f66
cmp eax, dword [ecx + 8]
ja 0x408f66
mov edx, dword [0x7e565c]
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0040b2a0
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 0x408f77
mov al, byte [ecx - 1]
test al, al
je 0x408f5a
cmp al, 0xff
je 0x408f5a
dec al
mov byte [ecx - 1], al
jmp 0x408f77
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
jmp 0x408f77
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 [0x870c48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x1c], eax
fst dword [0x870c54]
fild dword [esp + 0x2c]
fstp dword [0x870c58]
fstp dword [0x870c68]
fild dword [esp + 0x1c]
fstp dword [0x870c6c]
call fcn.00441450
fstp dword [0x870c4c]
mov byte [0x870c50], 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4