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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x54], 0
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x64], 0
mov byte [esp + 0x45], 0
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
test esi, esi
jne 0x1007f971
call fcn.10051860
mov esi, eax
mov dword [esp + 0x58], esi
mov dword [edi + 8], esi
test esi, esi
je 0x1007f95c
mov edx, 0x9e
mov ecx, esi
call fcn.10051ae0
cmp dword [edi + 0x1a0], 0
jne 0x1007f971
mov eax, dword [edi]
test byte [eax + 0x40], 8
jne 0x1007f971
mov byte [edi + 0x17], 1
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2a], 0x20
movsx eax, word [ecx + 0x22]
mov dword [esp + 0x2c], eax
jne 0x1007f995
mov dword [esp + 0x30], 0
mov dword [esp + 0x4c], 1
jmp 0x1007f9c0
mov edx, dword [ecx + 8]
mov dword [esp + 0x30], edx
test edx, edx
je 0x1007f9b8
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x1007f9b0
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x1007f9a0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov dword [esp + 0x3c], 2
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x1007fc1e
xor edx, edx
mov dword [esp + 0x10], edx
nop dword [eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x20]
cmp ecx, eax
je 0x1007fc06
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x1007fa01
cmp dword [eax + ecx*4], 0
jl 0x1007fc06
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov al, byte [edx + eax + 0xc]
movzx edi, al
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x20]
test al, al
je 0x1007fc06
mov ah, byte [ebp + 0x20]
cmp ah, 0xa
jne 0x1007fa36
cmp al, ah
jne 0x1007fa36
mov edi, 2
jmp 0x1007fa57
cmp ah, 0xa
movzx edi, ah
cmove edi, dword [esp + 0x18]
cmp edi, 5
jne 0x1007fa57
mov eax, dword [esp + 0x14]
cmp dword [edx + eax + 4], 0
mov eax, 2
cmove edi, eax
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x1007fa63
jmp dword [eax*4 + 0x10080cf4]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1a0]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [ecx + 0x15], 1
mov eax, dword [eax + 4]
jmp 0x1007fa8a
mov eax, dword [esp + 0x14]
push dword [edx + eax]
mov eax, dword [esp + 0x20]
push dword [eax]
push str._s._s
push dword [esp + 0x68]
call fcn.10035920
mov ecx, dword [ebp + 0x14]
mov edx, 0x14
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x3c]
inc ecx
add eax, ecx
mov ecx, esi
push eax
push edi
push 0x513
call fcn.10051e60
mov eax, dword [esi]
add esp, 0x24
mov edi, dword [esp + 0x20]
cmp byte [eax + 0x45], 0
jne 0x1007fc02
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 1
jmp 0x1007fc02
mov eax, dword [ebp + 0x14]
mov edx, 0x4c
push dword [ebp + 0x24]
inc eax
add eax, ecx
mov ecx, esi
push eax
call fcn.10051bc0
mov edi, dword [esp + 0x28]
add esp, 8
jmp 0x1007fc02
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x18]
inc edi
mov edx, dword [esi + 0x20]
add edi, ecx
mov dword [esp + 0x14], edx
cmp dword [eax + 0x58], edx
jg 0x1007fb38
push 0
push 0
push edi
mov edx, 0x4d
mov ecx, esi
call fcn.10051a30
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x1007fb6b
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x4d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov edx, dword [edx + eax + 4]
test edx, edx
je 0x1007fb95
cmp byte [edx], 0x9d
jne 0x1007fb95
push edi
mov edi, dword [esp + 0x24]
push dword [edx + 0x1c]
mov edx, 0x1e
mov ecx, dword [edi + 8]
jmp 0x1007fbc6
mov ecx, dword [esp + 0x20]
push edi
call fcn.100697c0
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov edi, dword [esp + 0x24]
inc edx
add edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x18], ecx
cmp ecx, edx
je 0x1007fbce
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1007fbce
push edx
push eax
mov edx, 0x1f
call fcn.10051bc0
add esp, 8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
dec ecx
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
cmp byte [eax + 0x45], 0
je 0x1007fbea
mov eax, 0x100fe494
jmp 0x1007fbff
mov ecx, dword [esp + 0x14]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x10], 0x10
inc ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x1007f9e0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x40], edx
test edx, edx
je 0x1007fe28
mov eax, dword [esp + 0x5c]
test dword [eax + 0x18], 0x2000
jne 0x1007fe28
mov eax, dword [ebp + 0x14]
inc eax
mov dword [edi + 0x64], eax
mov al, byte [ebp + 0x20]
cmp al, 0xa
je 0x1007fc59
movzx eax, al
mov dword [esp + 0x2c], eax
jmp 0x1007fc61
mov dword [esp + 0x2c], 2
cmp dword [edx], 0
mov dword [esp + 0x14], 0
jle 0x1007fe28
mov edi, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov eax, dword [edx + 4]
mov eax, dword [ecx + eax]
mov dword [esp + 0x50], eax
test edi, edi
je 0x1007fce7
mov dword [esp + 0x88], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x74], 0x1007f8b0
mov dword [esp + 0x88], edi
test eax, eax
je 0x1007fcd0
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100637a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
cmp byte [ebp + 0x1c], 0
mov al, byte [esp + 0x84]
jne 0x1007fcdf
and al, 0xfd
test al, al
je 0x1007fe0c
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov edi, dword [ecx + 0x74]
lea eax, [edi + 1]
mov dword [ecx + 0x74], eax
lea eax, [edi - 1]
test edi, eax
jne 0x1007fd1c
mov edx, dword [ecx + 0x78]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.10033d80
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x1007fd2a
mov dword [eax + edi*4], 0xffffffff
mov edx, dword [esp + 0x50]
not edi
mov ecx, dword [esp + 0x20]
push 0x10
push edi
call fcn.1006add0
mov ecx, dword [esp + 0x34]
add esp, 8
cmp ecx, 4
jne 0x1007fda3
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1007fd6b
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.10051a30
add esp, 0xc
jmp 0x1007fde2
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1007fde2
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx + 4]
test eax, eax
jne 0x1007fdbc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push 3
cmp ecx, 5
mov edx, 2
push 0
cmove ecx, edx
mov edx, 0x113
push eax
mov dword [esp + 0x38], ecx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10075600
add esp, 0x10
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x1007fdfa
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
dec eax
mov edi, dword [ebp + 0x2c]
mov dword [edx + 0x60], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add ecx, 0x18
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp eax, dword [edx]
jl 0x1007fc80
mov edi, dword [esp + 0x20]
cmp byte [ebp + 0x1c], 0
je 0x10080255
cmp dword [esp + 0x30], 0
jne 0x10080255
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x24], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x1007fe7a
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx]
push 0
push eax
call fcn.10033d80
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x1007fe88
mov dword [eax + edx*4], 0xffffffff
cmp byte [ebp + 0x20], 0xa
not edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
movzx eax, byte [ecx + 0x2b]
je 0x1007fea2
movzx eax, byte [ebp + 0x20]
jmp 0x1007feaa
cmp eax, 0xa
cmove eax, dword [esp + 0x3c]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x10], eax
je 0x1007ff26
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1007fed7
push dword [ebp + 0x18]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x4f
call fcn.10051a30
add esp, 0xc
jmp 0x1007ff0c
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x1007ff22
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x10], 5
jne 0x1007ffb9
cmp byte [ebp + 0x20], 5
je 0x1007ffb9
mov eax, dword [ecx + 8]
test eax, eax
je 0x1007ffb9
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x1007ff58
cmp cl, 3
je 0x1007ff58
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1007ff42
jmp 0x1007ffb9
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x54], edx
cmp dword [eax + 0x58], edx
jg 0x1007ff82
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.10051a30
add esp, 0xc
mov dword [esp + 0x54], eax
jmp 0x1007ffb9
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1007ffe1
push dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x46
call fcn.10051a30
add esp, 0xc
jmp 0x10080016
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 4
ja case.default.0x10080024
jmp dword [eax*4 + 0x10080d04]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], 0
test dword [eax + 0x18], 0x40000
je 0x10080094
mov eax, dword [edi]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ecx
test dword [eax + 0x18], 0x800000
je 0x10080066
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.100909c0
mov dword [esp + 0x14], eax
xor edx, edx
jmp 0x10080068
xor eax, eax
mov ecx, eax
test eax, eax
je 0x10080083
nop
cmp byte [ecx + 8], 0x6d
jne 0x1008007c
movzx eax, byte [ecx + 9]
or edx, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10080070
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100800e5
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
push 0
call fcn.1007d370
add esp, 8
test eax, eax
jne 0x100800e5
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
je 0x1008011b
mov eax, dword [edi + 0x1a0]
mov ecx, edi
test eax, eax
push 0xffffffffffffffff
cmovne ecx, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.10077b00
add esp, 0x10
mov dword [esp + 0x60], 1
jmp 0x10080192
mov eax, dword [edi + 0x1a0]
mov ecx, edi
mov edx, dword [esp + 0x1c]
test eax, eax
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, edi
push dword [esp + 0x34]
call fcn.10077680
add esp, 0x24
mov dword [esp + 0x60], 1
jmp 0x10080192
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.10051c30
jmp 0x10080192
mov dword [esp + 0x10], 2
mov edx, dword [esp + 0x1c]
movzx eax, word [edx + 0x20]
test ax, ax
js 0x10080169
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
push dword [edx]
push str._s._s
push dword [edi]
call fcn.10035920
add esp, 0x10
mov edx, 0x613
jmp 0x1008017f
push dword [edx]
push str._s.rowid
push dword [edi]
call fcn.10035920
add esp, 0xc
mov edx, 0xa13
push 2
push 0xffffffffffffffff
push eax
push dword [esp + 0x1c]
mov ecx, edi
call fcn.10075600
add esp, 0x10
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x100801ae
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
cmp dword [esp + 0x54], 0
mov dword [edx + 0x60], eax
je 0x10080255
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x64], ecx
cmp dword [eax + 0x58], ecx
jg 0x100801ea
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.10051a30
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x10080221
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
dec ecx
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
cmp byte [eax + 0x45], 0
je 0x1008023d
mov eax, 0x100fe494
jmp 0x10080252
mov ecx, dword [esp + 0x54]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0
mov ecx, dword [edx + 8]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x10080c3a
xor eax, eax
mov edi, dword [ebp + 8]
cmp dword [edi + eax*4], 0
mov edi, dword [esp + 0x20]
je 0x10080c26
cmp byte [esp + 0x45], 0
jne 0x1008029e
mov eax, dword [ebp + 0x14]
mov ecx, esi
inc eax
push eax
call fcn.1007e0d0
add esp, 4
mov byte [esp + 0x45], 1
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x3c], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x100802db
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx]
push 0
push eax
call fcn.10033d80
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x78], eax
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x100802e9
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [esp + 0x28]
not edx
mov dword [esp + 0x3c], edx
cmp dword [eax + 0x24], 0
je 0x100803bc
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x10080328
push 0
push edx
push 0
mov edx, 0x19
mov ecx, esi
call fcn.10051a30
add esp, 0xc
jmp 0x1008035b
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x14]
inc eax
mov dword [edi + 0x64], eax
mov eax, dword [edi]
mov edx, dword [ecx + 0x24]
mov ecx, eax
push 0
push 0
mov dword [esp + 0x1c], eax
call fcn.10066a40
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp byte [eax + 0x45], 0
jne 0x100803a8
mov edx, dword [esp + 0x3c]
push 0x10
push edx
mov edx, ecx
mov ecx, edi
call fcn.1006b0c0
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov ecx, eax
call fcn.10066910
mov eax, dword [esp + 0x28]
mov dword [edi + 0x64], 0
movzx ecx, word [eax + 0x34]
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x34], eax
cmp ecx, edx
jg 0x100803da
add eax, ecx
sub edx, ecx
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], edx
jmp 0x100803e9
mov eax, dword [edi + 0x4c]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x34], edx
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
movzx eax, word [eax + 0x34]
mov ecx, eax
cmp dx, ax
jae 0x10080549
mov edi, dword [esp + 0x34]
mov dword [esp + 0x40], edx
nop
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x1008048e
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x40]
inc eax
push 0
mov dword [ecx + 0x64], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
push 0
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [edx + eax]
call fcn.10066a40
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp byte [eax + 0x45], 0
jne 0x10080475
mov edx, ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.1006a9b0
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov ecx, eax
call fcn.10066910
mov eax, dword [esp + 0x20]
mov dword [eax + 0x64], 0
jmp 0x10080526
cmp edx, 0xffffffff
je 0x100804ab
mov eax, dword [esp + 0x1c]
movsx eax, word [eax + 0x20]
cmp edx, eax
je 0x100804ab
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x2c], eax
jmp 0x100804ca
cmp dword [esp + 0x68], edi
je 0x10080526
mov eax, dword [ebp + 0x14]
cmp dword [ecx + 0x24], 0
mov ecx, 0xffffffff
mov dword [esp + 0x2c], eax
mov eax, edi
cmovne eax, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
sar edx, 0x1f
and edx, 1
add edx, 0x1f
cmp dword [eax + 0x58], ecx
jg 0x100804f2
mov ecx, dword [esp + 0x2c]
push 0
push edi
push ecx
mov ecx, esi
call fcn.10051a30
add esp, 0xc
jmp 0x10080526
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], dl
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x28]
inc edi
mov edx, dword [esp + 0x10]
add dword [esp + 0x40], 0x18
inc edx
mov dword [esp + 0x10], edx
movzx ecx, word [eax + 0x34]
cmp edx, ecx
jl 0x10080410
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
movzx eax, cx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1008057f
push edx
push dword [esp + 0x18]
mov edx, 0x31
mov ecx, esi
push dword [esp + 0x3c]
call fcn.10051a30
add esp, 0xc
jmp 0x100805b6
mov edi, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x34]
movzx eax, word [eax + 0x34]
push eax
call fcn.10069210
mov eax, dword [esp + 0x2c]
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x1008060b
cmp dword [esp + 0x30], eax
jne 0x1008060b
cmp byte [ebp + 0x1c], 0
jne 0x1008060b
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x100805ff
mov eax, dword [esp + 0x3c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
jmp 0x10080c1a
movzx ecx, byte [eax + 0x36]
test ecx, ecx
jne 0x1008063f
movzx eax, word [eax + 0x34]
mov ecx, edi
mov edx, dword [esp + 0x34]
push eax
mov dword [esp + 0x1c], eax
call fcn.10069210
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [edi + 0x3c]
jle 0x100805e3
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x40], eax
jmp 0x100805e3
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
je 0x1008064c
movzx ecx, dl
jmp 0x10080657
cmp ecx, 0xa
mov edx, 2
cmove ecx, edx
movzx eax, word [eax + 0x32]
mov edx, 0x43
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x40]
push dword [esp + 0x44]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, esi
push eax
call fcn.10051fa0
mov edx, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [esp + 0x30]
cmp edx, eax
jne 0x10080695
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
jmp 0x100806ce
mov ecx, dword [edi + 0x3c]
mov esi, dword [esp + 0x4c]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x24], eax
cmp esi, ecx
jg 0x100806b7
add eax, esi
sub ecx, esi
mov dword [edi + 0x3c], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x40], eax
jmp 0x100806c6
mov eax, dword [edi + 0x4c]
lea ecx, [eax + 1]
add eax, esi
mov dword [esp + 0x24], ecx
mov dword [edi + 0x4c], eax
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
cmp dword [ebp + 0x18], 0
jne 0x100806df
cmp dword [esp + 0x14], 5
jne 0x10080a63
mov edi, dword [esp + 0x1c]
test byte [edi + 0x2a], 0x20
mov edi, dword [esp + 0x20]
jne 0x100807dc
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1008071f
mov eax, dword [esp + 0x38]
mov edx, 0x71
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push dword [esp + 0x28]
push eax
call fcn.10051a30
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x1008075d
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x71
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x10080a63
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1008078b
push dword [ebp + 0x18]
mov ecx, esi
push dword [esp + 0x40]
push edx
mov edx, 0x4f
call fcn.10051a30
add esp, 0xc
jmp 0x100807bd
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x10080a63
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
jmp 0x10080a63
cmp edx, eax
je 0x100808d4
xor edi, edi
mov dword [esp + 0x2c], 0
cmp di, word [eax + 0x32]
mov edi, dword [esp + 0x20]
jae 0x100808d4
mov dword [esp + 0x10], ecx
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x10080835
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x2c]
movzx eax, word [eax + edi*2]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x18]
cmp di, word [eax]
mov edi, dword [esp + 0x20]
je 0x10080868
inc ecx
add eax, 2
cmp ecx, edx
jl 0x10080820
or eax, 0xffffffff
mov ecx, dword [esi + 0x20]
movsx edx, ax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x18], edx
cmp dword [eax + 0x58], ecx
jg 0x1008086d
push dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, esi
add eax, dword [ebp + 0x10]
push edx
push eax
mov edx, 0x2f
call fcn.10051a30
add esp, 0xc
jmp 0x100808af
movzx eax, cx
jmp 0x10080838
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x10]
inc ecx
mov edx, dword [esp + 0x28]
movzx eax, word [eax + 0x32]
cmp ecx, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x30]
jl 0x10080800
cmp dword [ebp + 0x18], 0
je 0x10080a63
movzx ecx, word [eax + 0x32]
mov eax, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x40], 0x4e
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x34]
mov dword [esp + 0x6c], edx
xor edx, edx
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x10080a63
mov eax, dword [esp + 0x30]
mov ecx, dword [edi]
mov eax, dword [eax + 0x20]
mov edx, dword [eax + edx*4]
mov al, byte [ecx + 0x42]
mov byte [esp + 0x46], al
mov al, byte [ecx + 0x95]
mov byte [esp + 0x47], al
movzx eax, al
push eax
mov dword [esp + 0x54], edx
push edx
mov dl, byte [esp + 0x4e]
call fcn.10076310
add esp, 8
mov dword [esp + 0x18], eax
cmp byte [esp + 0x47], 0
jne 0x10080973
test eax, eax
je 0x1008095c
cmp dword [eax + 0xc], 0
jne 0x10080973
push dword [esp + 0x50]
mov dl, byte [esp + 0x4a]
mov ecx, edi
push eax
call fcn.100760b0
add esp, 8
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 4]
movsx edx, word [eax + ecx*2]
movzx ecx, word [edi + 0x32]
mov edi, 0x4f
mov eax, dword [esp + 0x40]
dec ecx
cmp dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x18]
cmove eax, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
cmovne eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], eax
add ecx, edx
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x6c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x58], edx
jg 0x100809e4
push dword [esp + 0x50]
mov edx, dword [esp + 0x44]
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.10051a30
add esp, 0xc
mov edx, eax
jmp 0x10080a20
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], cl
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
push 0xfffffffffffffffc
push dword [esp + 0x1c]
mov ecx, esi
call fcn.10052770
mov eax, dword [esi]
add esp, 8
mov edi, dword [esp + 0x20]
cmp byte [eax + 0x45], 0
jne 0x10080a4a
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
movzx eax, word [eax + 0x32]
cmp edx, eax
jl 0x10080915
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10080aed
cmp edx, 3
jbe 0x10080ada
cmp edx, 4
jne 0x10080aed
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x10080a9f
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.10051a30
add esp, 0xc
jmp 0x10080b9c
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10080b9c
push dword [esp + 0x28]
mov ecx, edi
call fcn.100756a0
add esp, 4
jmp 0x10080b9c
mov eax, dword [edi + 0x1a0]
xor edx, edx
test eax, eax
mov ecx, edi
cmovne ecx, eax
mov eax, dword [esp + 0x5c]
mov byte [ecx + 0x14], 1
test dword [eax + 0x18], 0x40000
je 0x10080b62
mov eax, dword [edi]
xor ecx, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], ecx
test dword [eax + 0x18], 0x800000
je 0x10080b37
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.100909c0
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
jmp 0x10080b39
xor eax, eax
mov ecx, eax
test eax, eax
je 0x10080b53
nop
cmp byte [ecx + 8], 0x6d
jne 0x10080b4c
movzx eax, byte [ecx + 9]
or edx, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10080b40
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov edx, eax
mov eax, dword [esp + 0x30]
mov ecx, edi
cmp dword [esp + 0x28], eax
push 0xffffffffffffffff
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x5c]
push dword [esp + 0x38]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x40]
call fcn.10077680
add esp, 0x24
mov dword [esp + 0x60], 1
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x10080bb8
mov eax, dword [esp + 0x3c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ecx, edi
dec eax
mov dword [edx + 0x60], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
movzx eax, word [eax + 0x34]
push eax
mov dword [esp + 0x4c], eax
call fcn.10069210
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, dword [edi + 0x3c]
jle 0x10080bed
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x34]
je 0x10080c1a
push dword [esp + 0x4c]
mov edx, eax
mov ecx, edi
call fcn.10069210
mov eax, dword [esp + 0x50]
add esp, 4
cmp eax, dword [edi + 0x3c]
jle 0x10080c1a
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x40], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [ecx + 0x14]
inc eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
test ecx, ecx
jne 0x10080272
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10080ce2
mov ecx, dword [esi + 0x20]
lea edi, [eax + 1]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x10080c6a
push 0
push edi
push 0
mov edx, 0xd
mov ecx, esi
call fcn.10051a30
add esp, 0xc
jmp 0x10080c9d
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
dec ecx
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
cmp byte [eax + 0x45], 0
je 0x10080cc9
mov ecx, dword [esp + 0x60]
mov eax, 0x100fe494
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret