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

Disassembly:
sub esp, 0x284
mov eax, dword [0x101a8cb0]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
mov ebx, dword [esp + 0x290]
push ebp
mov ebp, dword [esp + 0x290]
push esi
push edi
mov edi, dword [esp + 0x2a4]
push 0x54
xor esi, esi
lea eax, [esp + 0x94]
push esi
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], edi
call fcn.1002a420
push esi
mov eax, 1
push esi
push ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], 0x4000
mov dword [esp + 0xb4], esi
call fcn.1000c5c0
push edi
mov ecx, 0x28
mov word [esp + 0x58], cx
lea eax, [esp + 0x38]
push eax
mov edx, 0x103
lea ecx, [esp + 0x38]
push ecx
mov word [esp + 0x62], dx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x68]
push ecx
push esi
push esi
push ebp
call fcn.1007bcf0
add esp, 0x3c
test ax, ax
jne 0x1007d6b9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0x98], edx
call fcn.1006a690
movsx edx, ax
add esp, 8
mov dword [ebx], edx
jmp 0x1007d6bb
mov dword [ebx], esi
push edi
mov eax, 0x28
mov word [esp + 0x40], ax
lea edx, [esp + 0x20]
push edx
mov ecx, 4
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x4a], cx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push esi
push esi
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007d70e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
push edx
call fcn.100b2900
add esp, 4
mov dword [ebx + 4], eax
jmp 0x1007d715
mov dword [ebx + 4], 2
push edi
mov eax, 0x28
mov word [esp + 0x40], ax
lea edx, [esp + 0x20]
push edx
mov ecx, 0x1050
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x4a], cx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push esi
push esi
push ebp
mov dword [ebx + 0x10c], esi
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007d866
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 8]
push ecx
call fcn.1012b4d0
fadd qword [0x10147038]
call fcn.1012b4f0
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fstp qword [ebx + 0x118]
mov edx, dword [esi + 4]
inc edx
push edx
push edi
call fcn.10009ed0
add esp, 0xc
mov dword [ebx + 0x120], eax
test eax, eax
jne 0x1007d7a5
mov eax, 0x66
jmp 0x1007e980
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
call fcn.10031ea0
mov eax, dword [ebx + 0x120]
mov ecx, dword [esi + 4]
push edi
mov byte [eax + ecx], 0
lea eax, [esp + 0x2c]
push eax
mov edx, 0x1051
lea ecx, [esp + 0x2c]
push ecx
mov word [esp + 0x56], dx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0
push ebp
call fcn.1007bcf0
movzx eax, ax
add esp, 0x30
test ax, ax
jne 0x1007e980
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 8]
push edx
call fcn.1012b4d0
fadd qword [0x10147038]
call fcn.1012b4f0
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fstp qword [ebx + 0x110]
mov eax, dword [esi + 4]
inc eax
push eax
push edi
call fcn.10009ed0
add esp, 0xc
mov dword [ebx + 0x124], eax
test eax, eax
je 0x1007d79b
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
call fcn.10031ea0
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x124]
mov byte [eax + ecx], 0
or dword [ebx + 0x10c], 1
add esp, 0xc
xor esi, esi
xor eax, eax
push edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov word [esp + 0x7c], ax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov word [esp + 0x90], ax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x68], ax
mov edx, 0x28
mov word [esp + 0x40], dx
lea ecx, [esp + 0x20]
push ecx
mov eax, 0x1101
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
push esi
push ebp
mov dword [esp + 0x4c], esi
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007d99f
mov edi, dword [esp + 0x10]
cmp dword [edi + 4], 6
jne 0x1007d99b
mov eax, dword [esp + 0x18]
push 0
push eax
push ebp
call fcn.1000c5c0
push 6
lea ecx, [esp + 0x198]
push ecx
push ebp
call fcn.1000b880
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x1a0]
push esi
push edx
call fcn.100af8c0
mov word [esp + 0x88], ax
mov eax, dword [esp + 0x1aa]
push esi
push eax
call fcn.100af8c0
mov ecx, dword [esp + 0x1b4]
push esi
push ecx
mov word [esp + 0x9a], ax
call fcn.100af8c0
lea ecx, [edi + 0xc]
mov word [esp + 0x9c], ax
mov eax, ecx
add esp, 0x30
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1007d978
sub eax, esi
je 0x1007d993
push 4
push ecx
lea edx, [esp + 0x7a]
push edx
call fcn.10003d40
add esp, 0xc
mov dword [esp + 0x28], 1
mov edi, dword [esp + 0x20]
push edi
mov eax, 0x28
mov word [esp + 0x40], ax
lea edx, [esp + 0x20]
push edx
mov ecx, 0x1102
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x4a], cx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007da86
mov edi, dword [esp + 0x10]
cmp dword [edi + 4], 6
jne 0x1007da82
mov ecx, dword [esp + 0x18]
push 0
push ecx
push ebp
call fcn.1000c5c0
push 6
lea edx, [esp + 0x198]
push edx
push ebp
call fcn.1000b880
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x1a0]
push esi
push eax
call fcn.100af8c0
mov ecx, dword [esp + 0x1aa]
push esi
push ecx
mov word [esp + 0xa4], ax
call fcn.100af8c0
mov edx, dword [esp + 0x1b4]
push esi
push edx
mov word [esp + 0xae], ax
call fcn.100af8c0
lea ecx, [edi + 0xc]
mov word [esp + 0xb0], ax
mov eax, ecx
add esp, 0x30
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1007da60
sub eax, esi
je 0x1007da7e
push 4
push ecx
lea eax, [esp + 0x8e]
push eax
call fcn.10003d40
add esp, 0xc
inc dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push edi
mov ecx, 0x28
mov word [esp + 0x40], cx
lea eax, [esp + 0x20]
push eax
mov edx, 0x1103
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x4a], dx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007db63
mov edi, dword [esp + 0x10]
cmp dword [edi + 4], 6
jne 0x1007db5f
mov edx, dword [esp + 0x18]
push 0
push edx
push ebp
call fcn.1000c5c0
push 6
lea eax, [esp + 0x198]
push eax
push ebp
call fcn.1000b880
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1a0]
push esi
push ecx
call fcn.100af8c0
mov edx, dword [esp + 0x1aa]
push esi
push edx
mov word [esp + 0x7c], ax
call fcn.100af8c0
mov word [esp + 0x7e], ax
mov eax, dword [esp + 0x1b4]
push esi
push eax
call fcn.100af8c0
lea ecx, [edi + 0xc]
mov word [esp + 0x88], ax
mov eax, ecx
add esp, 0x30
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1007db40
sub eax, esi
je 0x1007db5b
push 4
push ecx
lea ecx, [esp + 0x66]
push ecx
call fcn.10003d40
add esp, 0xc
inc dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push edi
mov edx, 0x28
mov word [esp + 0x40], dx
lea ecx, [esp + 0x20]
push ecx
mov eax, 0x1201
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007dbda
mov eax, dword [esp + 0x18]
push 0
push eax
push ebp
call fcn.1000c5c0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push edi
lea ecx, [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x80]
push eax
push ebp
call fcn.100af830
add esp, 0x20
test ax, ax
jne 0x1007dbda
mov esi, dword [esp + 0x28]
inc esi
jmp 0x1007dbde
mov esi, dword [esp + 0x28]
push edi
mov ecx, 0x28
mov word [esp + 0x40], cx
lea eax, [esp + 0x20]
push eax
mov edx, 0x1202
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x4a], dx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007dc4f
mov edx, dword [esp + 0x18]
push 0
push edx
push ebp
call fcn.1000c5c0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push edi
lea ecx, [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x94]
push eax
push ebp
call fcn.100af830
add esp, 0x20
test ax, ax
jne 0x1007dc4f
inc esi
push edi
mov ecx, 0x28
mov word [esp + 0x40], cx
lea eax, [esp + 0x20]
push eax
mov edx, 0x1203
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x4a], dx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007dcbd
mov edx, dword [esp + 0x18]
push 0
push edx
push ebp
call fcn.1000c5c0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push edi
lea ecx, [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.100af830
add esp, 0x20
test ax, ax
jne 0x1007dcbd
inc esi
cmp esi, 6
jne 0x1007dd82
mov ecx, dword [esp + 0x1c]
push 0x1f0
push edi
mov dword [esp + 0x98], ecx
call fcn.10009ed0
add esp, 8
mov dword [ebx + 0x1d4], eax
test eax, eax
je 0x1007dd82
push 0x1f0
push 0
push eax
call fcn.1002a420
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x9c]
push edx
push edi
lea eax, [esp + 0x7c]
push eax
add ecx, 4
push ecx
call fcn.100b0620
movzx eax, ax
add esp, 0x1c
test ax, ax
jne 0x1007dd82
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x90]
push edx
push edi
lea eax, [esp + 0x84]
push eax
add ecx, 0xa8
push ecx
call fcn.100b0620
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x1007dd82
mov ecx, dword [ebx + 0x1d4]
lea edx, [esp + 0x90]
push edx
push edi
lea eax, [esp + 0x5c]
push eax
add ecx, 0x14c
push ecx
call fcn.100b0620
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x1007dd82
or dword [ebx + 0x10c], 0x20
push edi
mov edx, 0x28
mov word [esp + 0x40], dx
lea ecx, [esp + 0x20]
push ecx
mov eax, 0x3010
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ebp
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007e280
push 0
push 0
mov esi, ebp
push esi
call fcn.1000c5c0
lea eax, [esp + 0x9c]
push eax
push esi
call fcn.1007aba0
movzx eax, ax
add esp, 0x14
test ax, ax
jne 0x1007e980
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov edi, esi
push edi
call fcn.1000c5c0
mov ebp, dword [esp + 0x1c]
mov esi, dword [ebp + 4]
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1007de3e
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x18c]
push eax
push edi
call fcn.1007b5b0
movzx eax, ax
add esp, 0xc
test ax, ax
jne 0x1007e980
mov esi, dword [esp + 0x188]
mov dword [ebp + 4], esi
jmp 0x1007de45
mov dword [esp + 0x188], esi
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.10009ed0
mov edi, eax
add esp, 8
test edi, edi
je 0x1007d79b
mov edx, dword [esp + 0x30]
push esi
push edi
push edx
call fcn.1000b880
add esp, 0xc
cmp eax, esi
je 0x1007de7a
mov eax, 0xca
jmp 0x1007e980
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 4]
xor esi, esi
cmp ecx, esi
jbe 0x1007de8c
cmp eax, ecx
jbe 0x1007de8c
mov eax, ecx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x90]
push ecx
push edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
mov edx, dword [ebp + 4]
push edx
push eax
push edi
call fcn.1006f390
add esp, 0x18
test ax, ax
jne 0x1007e280
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x1007e280
mov dword [esp + 0x2c], esi
mov dword [ebx + 0x1d8], esi
mov dword [ebx + 0x1d0], esi
jmp 0x1007dee0
mov ebp, dword [eax + 0xc]
push 0xa4
lea eax, [esp + 0xe8]
push 0
push eax
mov dword [esp + 0x34], 0
call fcn.1002a420
lea ecx, [esp + 0x20]
push ecx
push 0x3002
push 0x28
push ebp
call fcn.10069260
add esp, 0x1c
test ax, ax
jne 0x1007dfa5
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, dword [edx + 8]
movzx eax, word [esi]
test ax, ax
jne 0x1007df3b
mov dword [esp + 0x170], 0x10000
jmp 0x1007df45
movzx eax, ax
mov dword [esp + 0x170], eax
mov ecx, dword [ecx]
push 2
add ecx, 0xc
push 0x10146b18
push ecx
call fcn.10033170
add esp, 0xc
test eax, eax
jne 0x1007df6b
movsx edx, word [esi + 2]
mov dword [esp + 0x174], edx
jmp 0x1007df76
movzx eax, word [esi + 2]
mov dword [esp + 0x174], eax
movzx ecx, word [esi + 4]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x178], ecx
mov eax, dword [edx]
push 4
add eax, 0xc
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.10003d40
add esp, 0xc
mov dword [esp + 0x28], 1
lea edx, [esp + 0x14]
push edx
push 0x3006
push 0x28
push ebp
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e1c9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 0
test eax, eax
je 0x1007dfed
cmp dword [eax], 0
je 0x1007dfed
mov eax, dword [eax]
push 4
add eax, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10003d40
add esp, 0xc
mov edx, dword [esp + 0x170]
mov ecx, dword [esp + 0x20]
lea eax, [edx + edx]
push eax
push ecx
call fcn.10009ed0
mov esi, eax
add esp, 8
mov dword [esp + 0x17c], esi
test esi, esi
je 0x1007d79b
cmp dword [esp + 0x178], 8
mov edi, dword [esp + 0x170]
jg 0x1007e0cc
mov edx, 0x10146b18
lea ecx, [esp + 0x38]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1007e054
test al, al
je 0x1007e050
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1007e054
add ecx, 2
add edx, 2
test al, al
jne 0x1007e034
xor eax, eax
jmp 0x1007e059
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1007e0cc
mov edx, 0x10146b00
lea ecx, [esp + 0x38]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1007e086
test al, al
je 0x1007e082
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1007e086
add ecx, 2
add edx, 2
test al, al
jne 0x1007e066
xor eax, eax
jmp 0x1007e08b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1007e0cc
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
lea ecx, [edi + edi]
cmp ecx, dword [eax + 4]
je 0x1007e0cc
mov eax, dword [eax + 8]
xor ecx, ecx
test edi, edi
jle 0x1007e0f9
jmp 0x1007e0b7
mov esi, dword [esp + 0x17c]
movzx dx, byte [eax + ecx]
mov word [esi + ecx*2], dx
inc ecx
cmp ecx, dword [esp + 0x170]
jl 0x1007e0b0
jmp 0x1007e0f9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
xor ecx, ecx
test edi, edi
jle 0x1007e0f9
jmp 0x1007e0e7
mov esi, dword [esp + 0x17c]
mov dx, word [eax + ecx*2]
mov word [esi + ecx*2], dx
inc ecx
cmp ecx, dword [esp + 0x170]
jl 0x1007e0e0
mov eax, dword [esp + 0x2a0]
mov esi, 1
cmp eax, esi
je 0x1007e12c
test eax, eax
jne 0x1007e113
cmp dword [esp + 0x1c], esi
je 0x1007e12c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 4
add ecx, 0xc
push ecx
lea edx, [esp + 0x18c]
push edx
jmp 0x1007e1bd
lea eax, [esp + 0x14]
push eax
push 0x3004
push 0x28
push ebp
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e1ae
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
test eax, eax
je 0x1007e1ae
push 0x10147034
push eax
call fcn.1012b5a0
add esp, 8
test eax, eax
je 0x1007e1ae
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push 0x10147030
push edx
call fcn.1012b5a0
add esp, 8
test eax, eax
je 0x1007e197
lea eax, [esp + 0x184]
push 0x10146b18
push eax
call fcn.10003cb0
add esp, 8
jmp 0x1007e1c5
lea ecx, [esp + 0x184]
push 0x10146b00
push ecx
call fcn.10003cb0
add esp, 8
jmp 0x1007e1c5
push 4
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x18c]
push eax
call fcn.10003d40
add esp, 0xc
add dword [esp + 0x28], esi
mov eax, 2
cmp dword [esp + 0x28], eax
jne 0x1007e280
or dword [ebx + 0x10c], eax
lea ecx, [esp + 0x14]
push ecx
push 0x3003
push 0x28
push ebp
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e229
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov esi, 0x43
cmp ecx, esi
jae 0x1007e20c
mov esi, ecx
mov eax, dword [eax + 8]
push esi
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.10031ea0
add esp, 0xc
mov byte [esp + esi + 0x12c], 0
mov edx, dword [esp + 0x20]
push 0xa4
push edx
call fcn.10009ed0
mov ecx, 0x29
lea esi, [esp + 0xec]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [eax], 0
test ecx, ecx
jne 0x1007e267
mov dword [ebx + 0x1d8], eax
mov dword [ebx + 0x1d0], eax
jmp 0x1007e269
mov dword [ecx], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1007dee0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
push eax
mov ecx, 0x29
mov word [esp + 0x40], cx
mov edx, 0x1000
mov word [esp + 0x42], dx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push esi
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007e356
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0x200
jne 0x1007e356
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x20]
push 0x200
push eax
mov dword [ebx + 0x1b8], 0x100
mov dword [ebx + 0x1bc], 0
mov dword [ebx + 0x1c0], 0x10
call fcn.10009ed0
add esp, 8
mov dword [ebx + 0x1c4], eax
test eax, eax
je 0x1007d79b
push 0x200
push esi
push eax
call fcn.10031ea0
lea ecx, [ebx + 0x1cc]
push 0x10146b00
push ecx
call fcn.10003cb0
lea edx, [ebx + 0x1c8]
push 0x10146b00
push edx
call fcn.10003cb0
mov esi, dword [esp + 0x4c]
add esp, 0x1c
or dword [ebx + 0x10c], 4
mov edx, dword [esp + 0x20]
push edx
mov eax, 0x28
mov word [esp + 0x40], ax
mov ecx, 0x3000
mov word [esp + 0x42], cx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push esi
mov dword [ebx + 8], 0
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007e731
push 0
push 0
push esi
call fcn.1000c5c0
lea edx, [esp + 0x9c]
push edx
push esi
call fcn.1007aba0
movzx eax, ax
add esp, 0x14
test ax, ax
jne 0x1007e980
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
push 0
push eax
push ebp
call fcn.1000c5c0
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 4]
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1007e41b
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x18c]
push edx
push ebp
call fcn.1007b5b0
movzx eax, ax
add esp, 0xc
test ax, ax
jne 0x1007e980
mov esi, dword [esp + 0x188]
mov dword [edi + 4], esi
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.10009ed0
mov ecx, dword [esp + 0x38]
mov ebp, eax
push esi
push ebp
push ecx
call fcn.1000b880
add esp, 0x14
cmp eax, esi
jne 0x1007de70
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 4]
test ecx, ecx
jbe 0x1007e44f
cmp eax, ecx
jbe 0x1007e44f
mov eax, ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x90]
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0
mov ecx, dword [edi + 4]
push ecx
push eax
push ebp
call fcn.1006f390
add esp, 0x18
test ax, ax
jne 0x1007e97e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1007e97e
mov edi, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x3002
push 0x28
push edi
xor ebp, ebp
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e52a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 8]
movzx eax, word [esi]
test ax, ax
jne 0x1007e4c8
mov dword [ebx + 0xf4], 0x10000
jmp 0x1007e4d1
movzx edx, ax
mov dword [ebx + 0xf4], edx
mov eax, dword [ecx]
push 2
add eax, 0xc
push 0x10146b18
push eax
call fcn.10033170
add esp, 0xc
test eax, eax
jne 0x1007e4f6
movsx ecx, word [esi + 2]
mov dword [ebx + 0xf8], ecx
jmp 0x1007e500
movzx edx, word [esi + 2]
mov dword [ebx + 0xf8], edx
movzx eax, word [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xfc], eax
mov edx, dword [ecx]
push 4
add edx, 0xc
push edx
lea eax, [ebx + 0x104]
push eax
call fcn.10003d40
add esp, 0xc
mov ebp, 1
lea ecx, [esp + 0x14]
push ecx
push 0x3004
push 0x28
push edi
call fcn.10069260
add esp, 0x10
lea ecx, [ebx + 0x6c]
test ax, ax
jne 0x1007e56a
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
push ecx
call fcn.10031ea0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 0xc
mov byte [eax + ebx + 0x6c], 0
jmp 0x1007e578
push 0x1013d204
push ecx
call fcn.10003cb0
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x3006
push 0x28
push edi
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e720
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
test eax, eax
je 0x1007e5c0
cmp dword [eax], 0
je 0x1007e5c0
mov eax, dword [eax]
push 4
add eax, 0xc
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.10003d40
add esp, 0xc
mov edx, dword [ebx + 0xf4]
mov eax, dword [esp + 0x20]
add edx, edx
push edx
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebx + 0x100], eax
test eax, eax
je 0x1007d79b
cmp dword [ebx + 0xfc], 8
mov ecx, dword [esp + 0x14]
jg 0x1007e62a
mov edx, dword [ebx + 0xf4]
mov eax, dword [ecx]
lea esi, [edx + edx]
cmp esi, dword [eax + 4]
je 0x1007e62a
mov ecx, dword [eax + 8]
xor eax, eax
test edx, edx
jle 0x1007e657
lea ebx, [ebx]
movzx dx, byte [ecx + eax]
mov esi, dword [ebx + 0x100]
mov word [esi + eax*2], dx
inc eax
cmp eax, dword [ebx + 0xf4]
jl 0x1007e610
jmp 0x1007e657
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
xor eax, eax
cmp dword [ebx + 0xf4], eax
jle 0x1007e657
lea esp, [esp]
mov si, word [ecx + eax*2]
mov edx, dword [ebx + 0x100]
mov word [edx + eax*2], si
inc eax
cmp eax, dword [ebx + 0xf4]
jl 0x1007e640
mov eax, dword [esp + 0x2a0]
cmp eax, 1
je 0x1007e689
test eax, eax
jne 0x1007e671
cmp dword [esp + 0x90], 1
je 0x1007e689
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 4
add ecx, 0xc
push ecx
lea edx, [ebx + 0x108]
push edx
jmp 0x1007e717
lea eax, [esp + 0x14]
push eax
push 0x3004
push 0x28
push edi
call fcn.10069260
add esp, 0x10
test ax, ax
jne 0x1007e709
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
test eax, eax
je 0x1007e709
push 0x10147034
push eax
call fcn.1012b5a0
add esp, 8
test eax, eax
je 0x1007e709
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push 0x10147030
push edx
call fcn.1012b5a0
add esp, 8
test eax, eax
je 0x1007e6f3
lea eax, [ebx + 0x108]
push 0x10146b18
push eax
call fcn.10003cb0
add esp, 8
jmp 0x1007e71f
lea ecx, [ebx + 0x108]
push 0x10146b00
push ecx
call fcn.10003cb0
add esp, 8
jmp 0x1007e71f
push 4
lea edx, [esp + 0x30]
push edx
lea eax, [ebx + 0x108]
push eax
call fcn.10003d40
add esp, 0xc
inc ebp
cmp ebp, 2
jne 0x1007e97e
or dword [ebx + 8], ebp
jmp 0x1007e97e
fldz
lea ebp, [ebx + 0x1c]
fstp qword [ebx + 0xc]
push 0x1013d204
fld1
push ebp
fst qword [ebx + 0x14]
xor esi, esi
fstp qword [ebx + 0x60]
call fcn.10003cb0
mov eax, dword [esp + 0x28]
push eax
mov ecx, 0x28
mov word [esp + 0x48], cx
mov edx, 0x1052
mov word [esp + 0x4a], dx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
push esi
push esi
push eax
call fcn.1007bcf0
add esp, 0x2c
test ax, ax
jne 0x1007e7d8
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push ecx
push edx
lea eax, [esp + 0x198]
push eax
call fcn.10031ea0
mov ecx, dword [edi + 4]
add esp, 0xc
mov byte [esp + ecx + 0x190], 0
cmp dword [edi + 4], esi
jbe 0x1007e7d8
lea edx, [esp + 0x190]
push edx
call fcn.1012b4d0
fstp qword [ebx + 0xc]
add esp, 4
mov esi, 1
mov edx, dword [esp + 0x20]
push edx
mov eax, 0x28
mov word [esp + 0x40], ax
mov ecx, 0x1053
mov word [esp + 0x42], cx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push edx
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007e8fb
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
push ecx
lea edx, [esp + 0x198]
push edx
call fcn.10031ea0
mov eax, dword [edi + 4]
add esp, 0xc
mov byte [esp + eax + 0x190], 0
cmp dword [edi + 4], 0
jbe 0x1007e8fb
fld1
lea ecx, [esp + 0x190]
push ecx
fstp qword [ebx + 0x60]
call fcn.1012b4d0
fst qword [ebx + 0x14]
add esp, 4
test esi, esi
je 0x1007e8f9
fld qword [0x10147028]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1007e8e3
fld1
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x1007e8ed
fxch st(2)
fst qword [ebx + 0x60]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1007e8a6
fmulp st(1)
fstp qword [ebx + 0x60]
jmp 0x1007e8aa
fstp st(0)
fstp st(0)
fld qword [0x10147020]
fcom qword [ebx + 0x60]
fnstsw ax
test ah, 0x41
jne 0x1007e8cf
fstp qword [ebx + 0x60]
or dword [ebx + 8], 8
fstp qword [ebx + 0x14]
fld qword [ebx + 0xc]
fdiv qword [ebx + 0x60]
fstp qword [ebx + 0xc]
jmp 0x1007e8fb
fstp st(0)
or dword [ebx + 8], 8
fstp qword [ebx + 0x14]
fld qword [ebx + 0xc]
fdiv qword [ebx + 0x60]
fstp qword [ebx + 0xc]
jmp 0x1007e8fb
or dword [ebx + 8], 8
fstp st(1)
fstp st(0)
jmp 0x1007e8fb
or dword [ebx + 8], 8
fstp st(2)
fstp st(0)
fstp st(0)
jmp 0x1007e8fb
fstp st(0)
mov ecx, dword [esp + 0x20]
push ecx
mov edx, 0x28
mov word [esp + 0x40], dx
mov eax, 0x1054
mov word [esp + 0x42], ax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push ecx
call fcn.1007bcf0
add esp, 0x24
test ax, ax
jne 0x1007e960
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
push ebp
call fcn.10031ea0
mov ecx, dword [esi + 4]
add esp, 0xc
mov byte [ebx + ecx + 0x1c], 0
mov ecx, dword [ebx + 8]
test cl, 8
je 0x1007e97e
fld qword [0x10147018]
fcomp qword [ebx + 0x14]
fnstsw ax
test ah, 0x41
jne 0x1007e97e
and ecx, 0xfffffff7
mov dword [ebx + 8], ecx
xor eax, eax
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002aab0
add esp, 0x284
ret