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

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
mov esi, ecx
mov ecx, 0xe
push ebx
mov ebx, eax
sub esp, 0xcc
mov dword [esp + 0x24], eax
lea edi, [esp + 0x88]
xor eax, eax
sub esp, 8
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], edx
lea eax, [esp + 0x90]
mov ecx, esi
push eax
mov eax, ebx
push 0
push 1
push 0
push 0
push dword [esp + 0xfc]
mov dword [esp + 0x70], esi
call fcn.00804ae0
mov dword [esp + 0x50], eax
add esp, 0x20
test eax, eax
jne 0x805a19
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x805a19
cmp dword [esp + 0xe0], 0xffffffff
je 0x805a34
lea eax, [esp + 0x78]
sub esp, 0xc
mov edx, 0xf
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, ebx
push 0
call fcn.007ec150
add esp, 0x10
test eax, eax
je 0x805b00
mov dword [esp + 0x30], eax
lea eax, [esp + 0x88]
call fcn.007b6280
mov eax, dword [esp + 0x30]
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x78]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xe0]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
lea ebx, [eax + 1]
mov eax, ebx
mov edi, esi
mov dword [esp + 0x10], ebx
sar eax, 0x1f
sar edi, 0x1f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
imul dword [ebp + 0x100]
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
mov dword [esp + 8], eax
sub esp, 0xc
mov eax, ebp
mov dword [esp + 0x18], edx
mov edx, 8
push 0
mov ecx, dword [esp + 0x30]
call fcn.007ec150
mov dword [esp + 0x74], eax
add esp, 0x10
mov ebp, dword [esp + 8]
mov ecx, eax
cmp dword [esp + 0xe0], 0xffffffff
setne dl
cmp dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x60]
sbb ebp, dword [esp + 0xc]
setl al
and edx, eax
mov ebp, edx
test ecx, ecx
je 0x805fd0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, ebp
test al, al
jne 0x805a19
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
jmp 0x805a19
mov esi, dword [esp + 0x50]
mov eax, ebp
imul dword [ebx + 0x100]
mov edi, esi
sar edi, 0x1f
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
push edx
push eax
push 1
push dword [esp + 0x84]
call fcn.0078bb60
mov eax, ebp
imul dword [ebx + 0x100]
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
add eax, 0x3ff
adc edx, 0
push edx
push eax
push 2
push dword [esp + 0x94]
call fcn.0078bb60
add esp, 0x14
push dword [esp + 0x84]
call fcn.007d7120
add esp, 0x10
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
cmp eax, 0x64
je 0x806593
sub esp, 0xc
push dword [esp + 0x84]
call fcn.007b8680
mov dword [esp + 0x74], eax
add esp, 0x10
test eax, eax
jne 0x805aef
cmp dword [esp + 0xe0], 0xfffffffe
jne 0x805a4c
cmp dword [esp + 0x8c], 1
je 0x8063c0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], 0
mov dword [esp + 0x6c], eax
mov eax, 3
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x20]
sub esp, 0xc
xor ecx, ecx
mov dword [esp + 0xa0], eax
push 0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x98]
call fcn.007fe420
add esp, 0x10
test eax, eax
jne 0x805a15
xor ebp, ebp
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x88]
call fcn.007fd820
cmp eax, 0x64
jne 0x8061c5
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x806100
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x8061b0
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
cmp byte [edx], al
jne 0x8061b0
xor eax, eax
jmp 0x805cb1
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
cmp byte [edx + eax], bl
jne 0x806050
add eax, 1
cmp dword [esp + 0x20], eax
jne 0x805ca0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x80606a
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ebx, ecx
sar ebx, 0x1f
lea esi, [esi]
shrd ecx, ebx, 7
shr ebx, 7
add eax, 1
mov esi, ebx
or esi, ecx
jne 0x805ce0
mov ecx, dword [esp + 8]
xor edx, edx
mov ebx, ecx
sar ebx, 0x1f
lea esi, [esi]
nop
shrd ecx, ebx, 7
shr ebx, 7
add edx, 1
mov edi, ebx
or edi, ecx
jne 0x805d00
mov ebx, dword [esp + 0x2c]
add eax, edx
xor edx, edx
add eax, dword [esp + 8]
mov ecx, ebx
sar ebx, 0x1f
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
lea esi, [esi]
shrd ecx, ebx, 7
shr ebx, 7
add edx, 1
mov edi, ebx
or edi, ecx
jne 0x805d30
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
add eax, edx
lea esi, [eax + edi]
mov eax, dword [ebp + 0x30]
test ebx, ebx
jle 0x805e50
mov edi, dword [esp + 0x24]
lea edx, [ebx + esi]
cmp edx, dword [edi + 0xe8]
jle 0x805e50
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, edx
not esi
mov ebx, esi
mov esi, ecx
xor esi, 0x7fffffff
or esi, ebx
je 0x8063a4
mov esi, edx
mov edi, ecx
add esi, 1
adc edi, 0
sub esp, 8
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], edi
push dword [esp + 0x20]
push eax
mov esi, dword [esp + 0x34]
mov eax, esi
call fcn.007f2720
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
jne 0x806194
sub esp, 0xc
add dword [esi + 0x34], 1
mov edx, ebp
mov eax, dword [esp + 0x2c]
add eax, 1
push eax
mov ecx, dword [esp + 0x20]
mov eax, esi
call fcn.0077f2d0
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
jne 0x806194
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x1c], 0
xor ecx, ecx
cdq
jmp 0x805df6
mov ecx, edi
shrd eax, edx, 7
shr edx, 7
lea edi, [ecx + 1]
mov esi, edx
or esi, eax
jne 0x805df4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
xor esi, esi
lea edi, [eax + ecx + 2]
mov eax, dword [esp + 0x38]
lea esi, [esi]
nop
shrd eax, edx, 7
shr edx, 7
add esi, 1
mov ebx, edx
or ebx, eax
jne 0x805e20
mov ebx, dword [esp + 0x28]
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x20], 0
add esi, edi
add esi, dword [esp + 0x2c]
mov dword [esp + 8], ebx
lea esi, [esi]
mov ebx, esi
sar ebx, 0x1f
add dword [ebp + 0x38], esi
adc dword [ebp + 0x3c], ebx
cmp esi, dword [ebp + 0x28]
jg 0x8060e0
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ebp
mov esi, eax
mov dword [esp + 0x40], eax
mov ebx, ecx
sar ebx, 0x1f
jmp 0x805e82
mov esi, eax
mov edi, ecx
mov byte [esp + 0x34], cl
shrd ecx, ebx, 7
lea eax, [esi + 1]
shr ebx, 7
or edi, 0xffffff80
mov ebp, ebx
mov edx, edi
or ebp, ecx
mov byte [eax - 1], dl
jne 0x805e80
movzx edx, byte [esp + 0x34]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 8]
sub eax, dword [esp + 0x40]
and edx, 0x7f
add eax, dword [esp + 0x18]
mov byte [esi], dl
mov ebx, ecx
mov esi, eax
add esi, dword [ebp + 0x30]
mov dword [esp + 0x34], eax
sar ebx, 0x1f
mov dword [esp + 0x40], esi
jmp 0x805ed2
mov esi, eax
mov edi, ecx
mov byte [esp + 0x18], cl
shrd ecx, ebx, 7
lea eax, [esi + 1]
shr ebx, 7
or edi, 0xffffff80
mov ebp, ebx
mov edx, edi
or ebp, ecx
mov byte [eax - 1], dl
jne 0x805ed0
movzx edx, byte [esp + 0x18]
mov ebp, dword [esp + 0x4c]
sub esp, 4
mov ebx, dword [esp + 0x38]
sub eax, dword [esp + 0x44]
and edx, 0x7f
mov byte [esi], dl
add ebx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x30]
add edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
add eax, ebx
push esi
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add eax, ebx
mov ebx, dword [ebp + 0x30]
add ebx, eax
mov dword [esp + 0x30], ebx
add esp, 0x10
mov edi, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jmp 0x805f52
mov ebx, edx
mov eax, edi
mov ecx, edi
lea edx, [ebx + 1]
shrd edi, ebp, 7
or eax, 0xffffff80
shr ebp, 7
mov byte [edx - 1], al
mov eax, ebp
or eax, edi
jne 0x805f50
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0x18]
and ecx, 0x7f
sub esp, 4
sub edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov byte [ebx], cl
lea ebx, [edx + eax]
mov eax, dword [ebp + 0x30]
push esi
add eax, ebx
push dword [esp + 0x50]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0x10
add eax, ebx
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x28]
cmp eax, dword [ebp + 0x20]
jg 0x8060b0
mov eax, dword [ebp + 0x18]
sub esp, 4
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x18]
push eax
call sub.msvcrt.dll_memcpy
mov dword [ebp + 0x1c], edi
add esp, 0x10
jmp 0x805c22
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
imul dword [ecx + 0x100]
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
mov edi, edx
mov esi, eax
add esi, dword [esp + 0x10]
adc edi, dword [esp + 0x14]
push edi
push esi
push 1
push dword [esp + 0x84]
call fcn.0078bb60
pop esi
push dword [esp + 0x84]
call fcn.007d7120
add esp, 0x10
cmp eax, 0x64
je 0x8064e1
sub esp, 0xc
push dword [esp + 0x84]
call fcn.007b8680
mov dword [esp + 0x74], eax
add esp, 0x10
mov eax, ebp
test al, al
jne 0x8065b4
mov edx, dword [esp + 0x64]
test edx, edx
jne 0x805aef
jmp 0x806900
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
sub esi, eax
mov dword [esp + 8], esi
mov ecx, dword [esp + 8]
test ecx, ecx
jg 0x805cd2
mov dword [esp + 0x30], 0x10b
mov dword [esp + 0x34], ebp
mov ebp, dword [ebp + 0x30]
sub esp, 0xc
push ebp
call fcn.007677d0
pop ecx
mov edi, dword [esp + 0x40]
push dword [edi + 0x24]
call fcn.007677d0
mov eax, dword [edi]
call fcn.00768970
mov dword [esp], edi
call fcn.007677d0
add esp, 0x10
jmp 0x805a19
mov eax, dword [esp + 0x28]
sub esp, 8
lea ebx, [eax + eax]
push ebx
push dword [ebp + 0x24]
call fcn.0077dcf0
add esp, 0x10
test eax, eax
je 0x806390
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x18], eax
jmp 0x805fb1
sub esp, 8
push esi
push eax
call fcn.0077dcf0
add esp, 0x10
test eax, eax
je 0x806390
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x28], esi
jmp 0x805e64
call fcn.0077b440
mov ebx, eax
test eax, eax
jne 0x806250
mov eax, pe_nt_image_headers32
call fcn.00775500
mov ebp, eax
test eax, eax
je 0x806250
lea edi, [eax + 4]
mov ecx, eax
mov dword [eax], 0
sub esp, 0xc
and edi, 0xfffffffc
mov dword [eax + 0x3c], 0
mov eax, ebx
sub ecx, edi
add ecx, 0x40
shr ecx, 2
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x30]
push dword [ebx + 0xe8]
call fcn.0077bf40
add esp, 0x10
mov dword [ebp + 0x30], eax
test eax, eax
je 0x806580
mov eax, dword [ebx + 0xe8]
sub esp, 0xc
mov edx, 0xa
mov dword [ebp + 0x28], eax
mov eax, ebx
push 0
lea ecx, [esp + 0x84]
call fcn.007ec150
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
je 0x806540
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x34]
mov ebp, dword [eax + 0x30]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jmp 0x806079
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esp + 8], eax
jmp 0x805cc6
mov dword [esp + 0x34], ebp
test eax, eax
jne 0x806937
cmp dword [esp + 0xe0], 0xffffffff
je 0x806313
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x74], 0
xor ebx, ebx
test edi, edi
jle 0x8063e9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jmp 0x806223
add ebx, 1
cmp edi, ebx
jle 0x8063e1
test cl, cl
je 0x8063e1
mov edx, dword [esi + ebx*4]
xor eax, eax
mov ecx, 1
mov ebp, dword [edx + 0xc]
or ebp, dword [edx + 8]
je 0x806210
mov eax, dword [esp + 0x20]
lea ecx, [edx + 0x18]
add edx, 8
call fcn.007f27b0
test eax, eax
sete cl
jmp 0x806210
mov dword [esp + 0x30], 7
jmp 0x805a19
sub esp, 0xc
mov edx, 0x1a
push 0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x84]
call fcn.007ec150
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
jne 0x806420
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov eax, ebp
imul dword [ebx + 0x100]
mov edi, esi
sar edi, 0x1f
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
push edx
push eax
push 1
push dword [esp + 0x80]
call fcn.0078bb60
mov eax, ebp
imul dword [ebx + 0x100]
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
add eax, 0x3ff
adc edx, 0
push edx
push eax
push 2
push dword [esp + 0x90]
call fcn.0078bb60
add esp, 0x20
sub esp, 0xc
push dword [esp + 0x80]
call fcn.007d7120
pop eax
push dword [esp + 0x80]
call fcn.007b8680
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
jne 0x806420
mov esi, dword [esp + 0x34]
test esi, esi
je 0x805a19
mov esi, dword [esp + 0x34]
mov ebp, dword [esi]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
test ebp, ebp
je 0x806440
mov edi, dword [esi + 0x10]
mov ebp, dword [esi + 0x14]
mov ecx, edi
mov ebx, ebp
mov dword [esp + 0x50], edi
add ecx, 1
mov dword [esp + 0x54], ebp
adc ebx, 0
sub esp, 8
mov dword [esi + 0x10], ecx
mov ecx, ebp
mov dword [esi + 0x14], ebx
push edx
mov edx, edi
push eax
mov eax, dword [esp + 0x34]
call fcn.007f2720
mov dword [esp + 0x40], eax
add esp, 0x10
test eax, eax
je 0x806600
mov eax, dword [esp + 0x24]
add dword [eax + 0x34], 1
mov eax, dword [esp + 0x34]
mov ebp, dword [eax + 0x30]
jmp 0x806079
mov dword [esp + 0x34], ebp
mov ebp, dword [ebp + 0x30]
mov dword [esp + 0x30], 7
jmp 0x806079
mov dword [esp + 0x34], ebp
mov ebp, eax
mov dword [esp + 0x30], 0x10b
jmp 0x806079
mov eax, dword [esp + 0x88]
mov eax, dword [eax]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jne 0x805bbc
mov dword [esp + 0x30], 0x65
jmp 0x805a19
mov dword [esp + 0x18], eax
test eax, eax
jne 0x806420
cmp dword [esp + 0xe0], 0xfffffffe
je 0x80625d
sub esp, 0xc
mov edx, 0x10
push 0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x84]
call fcn.007ec150
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
je 0x8067c2
cmp dword [esp + 0x34], 0
jne 0x806198
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jmp 0x805a19
sub esp, 4
push edx
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x54]
call fcn.007f2820
mov dword [esp + 0x60], eax
add esp, 0x30
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
add dword [eax + 0x34], 1
test ebx, ebx
jne 0x80637a
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x5c], edi
sbb eax, dword [esp + 0x6c]
jl 0x8064b4
cmp dword [esp + 0xe0], 0xffffffff
jne 0x80637a
sub esp, 8
mov ebx, dword [esp + 0x3c]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x34]
call fcn.007f29b0
mov ebp, dword [ebx + 0x30]
mov dword [esp + 0x40], eax
add esp, 0x10
jmp 0x806079
sub esp, 8
push 0
push dword [esp + 0x84]
call fcn.00778240
pop edi
push dword [esp + 0x84]
mov esi, eax
call fcn.007b8680
mov dword [esp + 0x74], eax
add esp, 0x10
test eax, eax
jne 0x805add
cmp esi, 0xf
jle 0x8068f2
sub esp, 0xc
push ebx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
call fcn.00805980
mov dword [esp + 0x74], eax
add esp, 0x10
jmp 0x806034
sub esp, 0xc
push dword [esp + 0x80]
call fcn.007d7120
add esp, 0x10
cmp eax, 0x64
je 0x80679d
sub esp, 0xc
push dword [esp + 0x80]
call fcn.007b8680
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
je 0x805c6f
jmp 0x806194
mov dword [esp + 0x34], ebp
mov ebp, eax
mov dword [esp + 0x30], 7
jmp 0x806079
sub esp, 8
push 0
push dword [esp + 0x84]
call fcn.00778270
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
add esp, 0x10
jmp 0x805b82
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x805aef
mov edi, dword [esp + 0x20]
xor eax, eax
mov ecx, 3
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov eax, 3
jmp 0x805bec
mov edi, dword [esp + 0x34]
mov dword [esp + 0x4c], 1
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x44], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esp + 0x14], edx
mov edi, dword [eax]
mov dword [esp + 0x38], eax
test edi, edi
je 0x80680c
lea esi, [esi]
nop
mov eax, dword [esp + 0x38]
mov esi, dword [eax + 8]
test esi, esi
je 0x80678b
movzx eax, byte [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
shrd eax, edx, 7
shr edx, 7
add ecx, 1
mov edi, edx
or edi, eax
jne 0x806682
mov edx, dword [esi + 0x24]
mov eax, 0xa
movzx ebx, byte [esp + 0x48]
mov dword [esp + 0x28], esi
sub eax, ecx
mov byte [edx + eax], bl
mov edx, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
lea ecx, [edx + eax + 1]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
jmp 0x8066c5
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
mov edi, eax
mov esi, eax
shrd eax, edx, 7
shr edx, 7
or edi, 0xffffff80
mov ebp, edx
add ebx, 1
mov ecx, edi
or ebp, eax
mov byte [ebx - 1], cl
jne 0x8066c1
mov ecx, dword [esp + 0x20]
mov edx, esi
mov esi, dword [esp + 0x28]
sub esp, 8
and edx, 0x7f
mov eax, dword [esp + 0x34]
mov byte [ecx], dl
mov edx, dword [esi + 0x20]
sub edx, eax
add eax, dword [esi + 0x24]
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
call fcn.007f2720
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 4]
add dword [esp + 0x18], 1
lea ecx, [ebx + 1]
adc dword [esp + 0x1c], 0
mov ebx, ecx
sar ebx, 0x1f
add dword [esp + 0x20], ecx
adc dword [esp + 0x24], ebx
add esp, 0x10
test esi, esi
je 0x806745
test eax, eax
je 0x806670
test eax, eax
jne 0x8068e9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
add dword [esp + 0x4c], 1
mov edi, dword [eax]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov esi, dword [edi]
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], eax
test esi, esi
je 0x80682c
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x806640
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x80674d
sub esp, 8
push 0
push dword [esp + 0x80]
call fcn.00778270
add esp, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x80655b
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
imul dword [edi + 0x100]
mov ecx, eax
mov eax, dword [esp + 0x50]
mov ebx, edx
cdq
add eax, ecx
mov ecx, dword [esp + 0xe0]
adc edx, ebx
shld edx, eax, 0xa
mov ebx, ecx
shl eax, 0xa
sar ebx, 0x1f
add eax, ecx
adc edx, ebx
push edx
push eax
push 1
push dword [esp + 0x80]
call fcn.0078bb60
add esp, 0x10
jmp 0x8062e8
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov ecx, edi
mov ebx, ebp
lea esi, [esi]
shrd ecx, ebx, 7
shr ebx, 7
add eax, 1
mov esi, ebx
or esi, ecx
jne 0x806840
mov ebx, eax
mov esi, dword [esp + 0x38]
mov eax, 0xa
mov edx, eax
sub edx, ebx
mov eax, dword [esi + 0x24]
movzx ebx, byte [esp + 0x4c]
mov dword [esp + 0x10], edx
mov byte [eax + edx], bl
mov eax, dword [esi + 0x24]
lea esi, [eax + edx + 1]
jmp 0x806882
mov esi, eax
mov ecx, edi
mov edx, edi
shrd edi, ebp, 7
lea eax, [esi + 1]
shr ebp, 7
or ecx, 0xffffff80
mov ebx, ebp
mov byte [eax - 1], cl
or ebx, edi
jne 0x806880
sub esp, 4
and edx, 0x7f
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov byte [esi], dl
mov eax, dword [edi + 0x20]
mov dword [esp + 0x24], eax
sub eax, ebx
push eax
mov eax, dword [edi + 0x24]
add eax, ebx
push eax
mov ebx, dword [esp + 0x40]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add eax, 0xffffffff
adc edx, 0xffffffff
push edx
push eax
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [ebx + 0xc]
push dword [ebx + 8]
jmp 0x80645b
mov dword [esp + 0x30], eax
jmp 0x806372
mov eax, ebp
mov dword [esp + 0x64], esi
test al, al
jne 0x8065c0
mov edi, dword [esp + 0x20]
xor eax, eax
mov ecx, 3
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov eax, 1
jmp 0x805bec
mov dword [esp + 0x18], eax
jmp 0x806420