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

Disassembly:
sub esp, 0x5e4
push ebp
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
mov eax, dword [edi + 0x22c]
mov ebp, dword [edi + 0x2a4]
cmp dword [ebp + 0x5e0], 0xffff
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x28]
mov dword [esp + 0x14], eax
mov byte [esp + 0x1c], 0
je 0x1007f9d8
cmp dword [ebp + 0x4a8], 0
je 0x1007f9d8
mov ecx, dword [esp + 0x5f8]
test ecx, ecx
je 0x1007f9e4
xor eax, eax
cmp ecx, dword [ebp + 0x4ac]
ja 0x1007f9be
mov edx, dword [ebp + 0x4a8]
movzx eax, word [edx + ecx*2]
mov dword [esp + 0x5f8], eax
test eax, eax
jne 0x1007f9e4
pop edi
pop esi
mov eax, 6
pop ebp
add esp, 0x5e4
ret
mov eax, dword [esp + 0x5f8]
cmp eax, dword [ebp + 0x14]
jae 0x1007f9c9
mov ecx, dword [esp + 0x5fc]
test ecx, 0x400
je 0x1007f9fd
or ecx, 3
mov dword [esp + 0x5fc], ecx
mov eax, 0x10000
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x5f4]
push ebx
test eax, eax
je 0x1007fbdb
mov edx, dword [eax + 0x10]
mov dword [esi + 0xa4], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 0xa8], edx
mov edx, dword [eax]
mov ebx, dword [edx + 0x21c]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x2c]
cmp edx, 0xffffffff
je 0x1007fbdb
cmp dword [ebx + 0x60], 0
je 0x1007fbdb
test cl, 8
jne 0x1007fbdb
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x4c]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x60c]
push ecx
push edx
mov edx, dword [ebx + 0x48]
push edi
call edx
add esp, 0x1c
test eax, eax
jne 0x1007fbcd
movzx edx, word [esp + 0x26]
mov word [esi + 0x6e], ax
movzx eax, word [esp + 0x24]
shl eax, 6
xor ecx, ecx
mov dword [esi + 0x1c], eax
movsx eax, word [esp + 0x28]
mov word [esi + 0x6c], cx
shl edx, 6
mov ecx, eax
shl ecx, 6
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], ecx
movsx ecx, word [esp + 0x2a]
mov edx, ecx
shl edx, 6
mov dword [esi + 0x24], edx
movzx edx, word [esp + 0x2c]
shl edx, 6
mov dword [esi + 0x28], edx
movsx edx, word [esp + 0x2e]
mov ebx, edx
shl ebx, 6
mov dword [esi + 0x2c], ebx
movsx ebx, word [esp + 0x30]
mov ebp, ebx
shl ebp, 6
mov dword [esi + 0x30], ebp
movzx ebp, word [esp + 0x32]
shl ebp, 6
test byte [esp + 0x600], 0x10
mov dword [esi + 0x34], ebp
mov dword [esi + 0x48], 0x62697473
je 0x1007fb0a
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], ebx
jmp 0x1007fb10
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov ebx, dword [esp + 0x5fc]
mov eax, dword [edi + 0x21c]
mov eax, dword [eax + 0x70]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push edi
call eax
movzx ecx, word [esp + 0x2c]
add esp, 0x14
mov dword [esi + 0x38], ecx
cmp byte [edi + 0x124], 0
je 0x1007fb7f
cmp word [edi + 0x14a], 0
jbe 0x1007fb7f
mov edx, dword [edi + 0x21c]
mov edx, dword [edx + 0x70]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 1
push edi
call edx
movzx eax, word [esp + 0x2c]
add esp, 0x14
pop ebx
pop edi
mov dword [esi + 0x3c], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x5e4
ret
mov ecx, 0xffff
cmp word [edi + 0x174], cx
je 0x1007fbad
movsx edx, word [edi + 0x1bc]
movsx eax, word [edi + 0x1ba]
pop ebx
sub eax, edx
pop edi
mov dword [esi + 0x3c], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x5e4
ret
movsx ecx, word [edi + 0xde]
movsx edx, word [edi + 0xdc]
pop ebx
sub edx, ecx
pop edi
mov dword [esi + 0x3c], edx
pop esi
xor eax, eax
pop ebp
add esp, 0x5e4
ret
mov ecx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f8]
test ecx, 0x4000
je 0x1007fbf3
pop ebx
pop edi
pop esi
mov eax, 6
pop ebp
add esp, 0x5e4
ret
cmp dword [ebp + 0x7e8], 0
je 0x1007fe2b
mov eax, dword [esp + 0x5fc]
push eax
lea ecx, [ebp + 0xbec]
push ecx
call fcn.1007c2d0
movzx edx, al
add esp, 8
cmp edx, dword [ebp + 0x7e8]
jb 0x1007fc2a
mov al, byte [ebp + 0x7e8]
dec al
mov ebx, dword [ebp + 0x5a0]
movzx eax, al
lea ecx, [ebp + eax*4 + 0x7ec]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x48], eax
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x4c]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], edx
cmp ebx, eax
je 0x1007fcab
mov ecx, dword [esi + 0xa4]
push eax
push ebx
push ecx
call fcn.1004c560
mov edx, dword [esp + 0x1c]
push edx
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa8]
push ebx
push eax
call fcn.1004c560
add esp, 0x18
mov dword [esi + 0xa8], eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x5f8]
mov ecx, dword [esp + 0x600]
xor edx, edx
mov word [esi + 0x6e], dx
xor ebx, ebx
mov word [esi + 0x6c], bx
lea edx, [esi + 0x6c]
mov ebx, ecx
mov dword [esp + 0x54], edx
mov dl, cl
push fcn.1007f8f0
shr ebx, 1
push fcn.1007f880
sar ecx, 0x10
and ecx, 0xf
push ecx
not bl
and bl, 1
mov byte [esp + 0x40], bl
mov ecx, dword [esp + 0x40]
push ecx
not dl
push esi
and dl, 1
push eax
mov eax, dword [esp + 0x30]
mov byte [esi + 0xa1], dl
lea edx, [esp + 0x70]
mov byte [esi + 0xa0], bl
mov dword [esi + 0x48], 0x6f75746c
mov ecx, dword [eax]
push edi
push edx
call ecx
add esp, 0x20
test dword [esp + 0x600], 0x100
je 0x1007fd31
mov byte [esp + 0x2a9], 1
mov ecx, dword [esp + 0x5fc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push edi
mov byte [esp + 0xaa], 0
call fcn.1007f880
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x100802c8
mov edx, dword [esp + 0x5fc]
mov eax, dword [esp + 0x5f8]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x60]
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x100802c8
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [eax + 0x18]
lea edx, [esp + 0x36c]
push edx
call ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x378]
push ecx
call eax
add esp, 0x18
mov dword [esp + 0x38], eax
cmp al, 0xa4
jne 0x1007fdf9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
xor bl, bl
lea eax, [esp + 0x36c]
mov byte [esi + 0xa0], bl
mov edx, dword [ecx + 8]
push eax
mov byte [esp + 0x2c], 1
call edx
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.1007f8f0
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x38], ecx
jne 0x100802c8
mov edx, dword [edi + 0x80]
cmp dword [edx + 0x34], ecx
je 0x1007fe6c
mov dword [esi + 0x8c], ecx
jmp 0x1007fe94
mov edx, dword [ebp + 0x58c]
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0x590]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x594]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x598]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x5a4]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x5a8]
mov dword [esp + 0x50], edx
jmp 0x1007fcb9
mov eax, dword [ebp + 0x4d0]
cmp eax, ecx
je 0x1007fe9a
mov ecx, dword [esp + 0x5fc]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x4d4]
lea ecx, [edx + eax - 1]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x88], ecx
lea eax, [esp + 0x58]
push eax
call dword [esp + 0xac]
mov ecx, dword [edi + 0x80]
mov eax, dword [ecx + 0x34]
add esp, 4
test eax, eax
je 0x1007ff3b
mov edx, dword [eax]
cmp dword [edx + 8], 0
je 0x1007ff3b
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x600]
push 0
push edx
push eax
call ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x40]
add esp, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
test eax, eax
jne 0x100802c8
test dword [esp + 0x600], 0x400
je 0x1007ff9c
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x2a0]
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], edx
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
pop ebx
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x4c]
pop edi
pop esi
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 8], 1
mov eax, dword [esp + 0x2c]
pop ebp
add esp, 0x5e4
ret
xor eax, eax
lea ebp, [esi + 0x18]
cmp word [edi + 0xfa], ax
je 0x1007ffe3
mov ecx, dword [edi + 0x21c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x604]
push edx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x70]
push edi
call eax
movsx ecx, word [esp + 0x28]
movzx eax, word [esp + 0x24]
add esp, 0x14
mov dword [ebp + 8], ecx
jmp 0x1007ffea
mov eax, dword [esp + 0x2a0]
mov dword [ebp + 0x10], eax
mov edx, dword [esi + 0x9c]
mov dword [esi + 0x38], eax
mov byte [edx + 8], 0
cmp byte [edi + 0x124], 0
je 0x10080050
xor eax, eax
cmp word [edi + 0x14a], ax
jbe 0x10080050
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x600]
lea edx, [esp + 0x14]
push edx
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x21c]
mov edx, dword [eax + 0x70]
push 1
push edi
mov byte [esp + 0x2c], 1
call edx
movsx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x28]
add esp, 0x14
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
jmp 0x1008008b
mov edx, 0xffff
mov byte [esp + 0x18], 0
cmp word [edi + 0x174], dx
je 0x10080078
movsx eax, word [edi + 0x1bc]
movsx ecx, word [edi + 0x1ba]
sub ecx, eax
mov dword [ebp + 0x1c], ecx
jmp 0x1008008b
movsx edx, word [edi + 0xde]
movsx eax, word [edi + 0xdc]
sub eax, edx
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x5f8]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x48], 0x6f75746c
mov dword [esi + 0x7c], 0
test eax, eax
je 0x100800b8
cmp word [eax + 0xe], 0x18
jae 0x100800b8
mov dword [esi + 0x7c], 0x100
or dword [esi + 0x7c], 4
mov eax, 0x10000
cmp dword [esp + 0x3c], eax
jne 0x100800db
cmp dword [esp + 0x48], eax
jne 0x100800db
cmp dword [esp + 0x40], 0
jne 0x100800db
cmp dword [esp + 0x44], 0
je 0x10080111
mov edi, dword [esp + 0x54]
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.1004e360
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.10078b70
mov edx, dword [esp + 0x58]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x1c]
push edx
push eax
call fcn.10078b70
add esp, 0x18
mov dword [ebp + 0x1c], eax
jmp 0x10080115
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x10080123
cmp dword [esp + 0x50], eax
je 0x10080140
mov ecx, dword [esp + 0x50]
push ecx
push eax
push edi
call fcn.1004e210
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add dword [ebp + 0x10], edx
add esp, 0xc
add dword [ebp + 0x1c], eax
test byte [esp + 0x600], 1
je 0x10080155
cmp byte [esp + 0x20], 0
je 0x10080260
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa8]
mov edi, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
test bl, bl
je 0x1008017a
cmp dword [esp + 0x9c], 0
jne 0x100801f4
mov eax, dword [esp + 0x54]
movsx esi, word [eax + 2]
test esi, esi
jle 0x100801f4
mov ecx, dword [edi]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov dword [edi], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ecx
dec esi
add edi, 8
test esi, esi
jg 0x10080186
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x54]
mov dword [ebp + 0x1c], edx
lea eax, [esp + 0x24]
push eax
push edi
call fcn.1004e180
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub edx, ecx
mov dword [ebp], edx
mov edx, eax
sub edx, dword [esp + 0x30]
add esp, 8
cmp byte [esp + 0x18], 0
mov dword [ebp + 4], edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
je 0x100802b1
mov eax, dword [ebp + 0x10]
cdq
sub eax, edx
pop ebx
sar eax, 1
pop edi
sub ecx, eax
mov eax, dword [esp + 0x30]
pop esi
mov dword [ebp + 0x14], ecx
pop ebp
add esp, 0x5e4
ret
test byte [esp + 0x600], 0x10
je 0x100802c8
mov eax, dword [ebp + 0x1c]
push eax
push ebp
call fcn.1004d1c0
add esp, 8
mov eax, dword [esp + 0x38]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5e4
ret