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

Disassembly:
sub esp, 0x54
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [ebx + 0x1c]
push edi
push 0xc40
push 0
push ebp
mov dword [esp + 0x20], esi
call fcn.10104ed0
xor eax, eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.100b57e0
mov cl, byte [esp + 0x88]
mov edi, eax
mov eax, dword [esp + 0x74]
push ebp
push 0x10168d24
push ebx
mov dword [esp + 0x28], edi
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], esi
mov byte [ebp + 0x20], cl
mov dword [ebp + 0xc], edi
call fcn.10050960
add esp, 0x1c
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
cmp byte [esp + 0x78], al
je 0x1007da91
cmp byte [ebp + 0x18], 2
jne 0x1007df97
cmp byte [ebp + 0x1a], 5
jb 0x1007df97
lea edx, [esp + 0x6c]
push edx
push ebx
call fcn.1004ecd0
movzx eax, ax
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x74]
add esp, 8
test eax, eax
jne 0x1007dfa0
jmp 0x1007daca
lea ecx, [esp + 0x6c]
push ecx
push ebx
call fcn.1004ec70
mov cl, al
mov eax, dword [esp + 0x74]
add esp, 8
test eax, eax
jne 0x1007dfa0
cmp byte [ebp + 0x18], 1
jne 0x1007df97
cmp byte [ebp + 0x1a], 4
jb 0x1007df97
cmp cl, 4
ja 0x1007df97
movzx edx, byte [ebp + 0x1a]
add edx, edi
push edx
push ebx
call fcn.1004ea00
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007df90
cmp byte [esp + 0x78], al
je 0x1007dbac
mov dword [ebp + 0x4d8], eax
mov dword [ebp + 0x4dc], eax
mov dword [ebp + 0x4e0], eax
mov dword [ebp + 0x4e4], eax
mov dword [ebp + 0x4e8], eax
mov dword [ebp + 0x4ec], eax
mov dword [ebp + 0x4f0], eax
mov dword [ebp + 0x4f4], eax
push ebx
mov dword [ebp + 0x4f8], eax
call fcn.100b57e0
mov dword [ebp + 0x4ec], eax
mov eax, dword [ebp + 0x1c]
push eax
push ebx
mov dword [ebp + 0x4f0], eax
call fcn.1004ea40
add esp, 0xc
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov eax, dword [esp + 0x78]
push eax
lea esi, [ebp + 0x6c]
push 1
mov edi, ebx
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
cmp byte [esp + 0x74], 0
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x54c], ecx
je 0x1007dc89
mov edx, dword [esp + 0x68]
movzx ecx, dx
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x1007dc81
cmp ecx, dword [ebp + 0x30]
jb 0x1007dc81
mov eax, 6
jmp 0x1007df9c
push 0
push 0
lea esi, [ebp + 0x24]
mov edi, ebx
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007df90
mov eax, dword [ebp + 0x30]
cmp eax, 1
jbe 0x1007dbe7
cmp dword [ebp + 0x3c], eax
jae 0x1007dbe7
xor eax, eax
cmp byte [esp + 0x74], al
sete al
add eax, 2
jmp 0x1007df9c
push 0
lea esi, [ebp + 0x4d8]
push 0
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
push eax
push 1
lea esi, [esp + 0x20]
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
push eax
lea esi, [ebp + 0x6c]
push 1
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
lea ecx, [ebp + 0x558]
push ecx
lea edx, [ebp + 0x554]
push edx
lea eax, [ebp + 0x550]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.1007beb0
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov edx, dword [ebp + 0x30]
cmp edx, dword [ebp + 0x4e4]
jbe 0x1007db71
mov eax, 3
jmp 0x1007df9c
mov esi, dword [ebp + 0x30]
mov dword [ebp + 0x10], esi
jmp 0x1007dca9
cmp dword [ebp + 0x30], 1
mov dword [esp + 0x10], 0
jbe 0x1007dca1
mov eax, 3
jmp 0x1007df9c
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
test edx, edx
jl 0x1007dfa0
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 0x78]
push edx
push ebp
push edi
neg eax
push ebx
push ecx
sbb eax, eax
lea ecx, [ebp + 0x4d8]
and eax, 0x2000
push ecx
lea esi, [ebp + 0x55c]
add eax, 0x1000
push esi
call fcn.1007d680
add esp, 0x1c
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov eax, dword [esi + 0x70]
add eax, edi
push eax
push ebx
call fcn.1004ea00
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov ecx, dword [esp + 0x78]
push ecx
push eax
lea esi, [ebp + 0x4b4]
mov edi, ebx
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
cmp dword [ebp + 0x5e0], 0xffff
jne 0x1007dd4d
cmp byte [esp + 0x78], al
jne 0x1007dd4d
mov dword [ebp + 0x7e8], eax
jmp 0x1007deb4
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0x610]
push ebx
lea edx, [ebp + 0xc28]
mov ecx, esi
call fcn.1007c760
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov edx, dword [ebp + 0x600]
add edx, esi
push edx
push ebx
call fcn.1004ea00
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov eax, dword [esp + 0x78]
push eax
push 0
lea esi, [esp + 0x44]
call fcn.1007bb90
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov eax, dword [esp + 0x48]
cmp eax, 0x100
ja 0x1007de9f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
push ecx
push 0
push eax
push 0
push 0x28c
push edx
mov dword [ebp + 0x7e8], eax
call fcn.100526b0
add esp, 0x18
cmp dword [esp + 0x6c], 0
jne 0x1007de9f
mov edx, dword [esp + 0x48]
test edx, edx
jbe 0x1007de10
mov ecx, eax
lea eax, [ebp + 0x7ec]
mov esi, edx
nop
mov dword [eax], ecx
add eax, 4
add ecx, 0x28c
sub esi, 1
jne 0x1007de00
xor edi, edi
test edx, edx
jbe 0x1007de6e
movzx esi, byte [esp + 0x78]
neg esi
sbb esi, esi
and esi, 0x3000
lea eax, [ebp + 0x7ec]
add esi, 0x1000
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov ecx, dword [esp + 0xc]
push edx
push ebp
push ecx
push ebx
push edi
lea edx, [esp + 0x50]
push edx
push eax
mov eax, esi
call fcn.1007d680
add esp, 0x1c
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007de9f
mov edx, dword [esp + 0x48]
add dword [esp + 0x64], 4
inc edi
cmp edi, edx
jb 0x1007de35
cmp byte [esp + 0x78], 0
je 0x1007de7a
cmp edx, 1
jbe 0x1007de9f
mov eax, dword [ebp + 0x604]
mov ecx, dword [ebp + 0x4c0]
add eax, dword [esp + 0xc]
push ecx
lea edi, [ebp + 0xbec]
mov esi, ebx
call fcn.1007c250
add esp, 4
mov dword [esp + 0x6c], eax
lea esi, [esp + 0x3c]
call fcn.1007bce0
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x1007dfa0
cmp dword [ebp + 0x5cc], 0
jne 0x1007dec7
mov eax, 3
jmp 0x1007df9c
mov edx, dword [ebp + 0x4c0]
push 0
push 0
lea eax, [ebp + 0x548]
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x14], edx
call fcn.1007beb0
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
cmp byte [esp + 0x78], al
jne 0x1007df79
mov edx, dword [ebp + 0x14]
test edx, edx
jbe 0x1007df79
cmp dword [ebp + 0x5e0], 0xffff
je 0x1007df1b
mov byte [esp + 0x78], 1
cmp byte [esp + 0x74], al
jne 0x1007df20
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x5c4]
push ecx
lea esi, [ebp + 0x49c]
push ebx
push esi
mov ecx, edi
call fcn.1007c3f0
add esp, 0xc
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
cmp dword [ebp + 0x5e0], 0xffff
jne 0x1007df79
mov edx, dword [ebp + 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 0x5c8]
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.1007d120
add esp, 0x14
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1007dfa0
mov edx, dword [esp + 0x10]
mov eax, ebp
call fcn.1007c170
mov dword [ebp + 0x544], eax
mov eax, dword [esp + 0x6c]
jmp 0x1007dfa0
cmp byte [esp + 0x74], 0
je 0x1007dfa0
mov eax, 2
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1007dfd2
cmp dword [esp + 0x38], 0
mov esi, dword [ecx + 0x1c]
je 0x1007dfc0
lea edx, [esp + 0x38]
push edx
push ecx
call fcn.10050810
add esp, 8
mov eax, dword [esp + 0x34]
push eax
push esi
call fcn.1004f1e0
mov eax, dword [esp + 0x74]
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x54
ret