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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xdc]
cmp eax, dword [ecx + 8]
jbe 0x870dfe
sub esp, 0x15c
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0xc8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x168]
mov dword [esp + 8], edx
call fcn.00868290
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
test ecx, ecx
jne 0x870de5
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0xc8]
mov dword [esp + 0x68], 4
lea edx, [0x9b28c0]
mov dword [esp + 0x78], edx
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x68]
mov dword [esp], ecx
call fcn.0042c560
test eax, eax
jne 0x870dd8
mov eax, dword [esp + 0x160]
lea ecx, [eax + 0xfc]
mov dword [esp + 0xb8], ecx
mov dword [esp], ecx
call fcn.004723c0
mov eax, dword [esp + 0x160]
movzx ecx, byte [eax + 0x10c]
mov byte [esp + 0x33], cl
mov edx, dword [esp + 0xb8]
mov dword [esp], edx
call fcn.00472790
movzx eax, byte [esp + 0x33]
test al, al
je 0x87070d
mov ecx, dword [esp + 0x170]
cmp ecx, 8
jne 0x870cc2
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0xf8]
mov ebx, dword [ecx + 0x28]
mov ebp, dword [esp + 0x164]
mov dword [esp + 0xc4], ebp
mov esi, dword [esp + 0x168]
mov dword [esp + 0xc8], esi
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.004572a4
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov word [esp + 0x104], 1
mov dword [esp + 0xfc], edx
mov word [esp + 0x11c], 2
mov dword [esp + 0x114], ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x118], ecx
lea edx, [esp + 0xfc]
mov dword [esp], edx
lea edx, [esp + 0x40]
mov dword [esp + 4], edx
mov dword [esp + 8], 2
call fcn.0043c950
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x870c89
cmp ecx, 1
jne 0x870dfd
mov dword [esp + 0x88], 0x10
lea eax, [0x9b28b8]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x184]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x164]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x168]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0x88]
mov dword [esp], ecx
call fcn.0042c560
test eax, eax
jne 0x870c7c
movzx eax, byte [esp + 0x16c]
mov ecx, dword [esp + 0x160]
mov byte [ecx + 0xe0], al
mov eax, dword [esp + 0x170]
mov dword [ecx + 0xe4], eax
mov edx, dword [esp + 0x178]
mov dword [ecx + 0xe8], edx
mov ebx, edx
sar edx, 0x1f
mov dword [ecx + 0xec], edx
movzx edx, byte [ecx + 0x10]
test dl, dl
jne 0x870b6f
mov byte [ecx + 0xe1], 0
movzx edx, byte [esp + 0x16d]
test dl, dl
je 0x870894
cmp eax, 1
jne 0x870b64
mov eax, 1
test al, al
je 0x870894
mov byte [ecx + 0xe1], 1
lea esi, [ecx + 0xe0]
lea edi, [esp + 0x50]
call fcn.00457784
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xb4], ecx
mov edi, esp
lea esi, [esp + 0x50]
call fcn.00457784
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x18], ecx
lea ecx, [eax + 0xd8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 8
call fcn.0086a720
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
test ecx, ecx
jne 0x870b4c
mov eax, dword [esp + 0x160]
mov dword [esp], eax
mov ecx, dword [esp + 0x174]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x178]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0xc], ecx
call fcn.00870e10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
test ecx, ecx
jne 0x870b38
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x160]
movzx ebx, byte [ecx + 0xe0]
test bl, bl
jne 0x870a7b
mov edx, dword [ecx + 0xf8]
mov ebx, dword [ecx + 0x28]
mov ebp, dword [0xdc0efc]
lea esi, [0xa54060]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ebp
lea edi, [esp + 0xcc]
xor eax, eax
call fcn.004572a4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov word [esp + 0xd4], 1
mov dword [esp + 0xcc], edx
mov word [esp + 0xec], 2
mov dword [esp + 0xe4], ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xe8], ecx
lea ecx, [esp + 0xcc]
mov dword [esp], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.0043c950
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x870a42
cmp ecx, 1
jne 0x870dfd
mov eax, dword [esp + 0x34]
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x108]
mov eax, dword [eax + 0x104]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov eax, dword [ecx + 0x20]
mov dword [esp], eax
call fcn.0063d6d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
test eax, eax
je 0x870b2c
je 0x870aa9
mov eax, dword [eax + 4]
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
lea eax, [0x98dd17]
mov dword [esp], eax
mov dword [esp + 4], 0x13
lea eax, [esp + 0xbc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c6610
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov ecx, dword [esp + 0x160]
jmp 0x870973
mov dword [esp + 0x180], edx
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov dword [esp + 0x180], 0
nop
call fcn.0042cca0
add esp, 0x15c
ret
cmp eax, 2
sete al
jmp 0x870889
mov byte [ecx + 0xf0], 1
mov eax, dword [0xdc1bcc]
mov edx, dword [0xdc1bc8]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [ecx + 0xd8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 4
call fcn.00496020
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
test eax, eax
je 0x870c56
je 0x870bd3
mov eax, dword [eax + 4]
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
lea eax, [0x99a150]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0xbc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c6610
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0xd8]
mov dword [ecx + 0xf4], edx
mov eax, dword [esp + 0x170]
mov ebx, dword [esp + 0x178]
jmp 0x870868
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x108]
mov eax, dword [eax + 0x104]
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov eax, dword [esp + 0x164]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x168]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0xf8]
lea edi, [esp + 0x12c]
mov ebx, eax
xor eax, eax
call fcn.004572a4
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov word [esp + 0x134], 1
mov dword [esp + 0x12c], ebx
mov word [esp + 0x14c], 1
mov dword [esp + 0x144], edx
lea eax, [esp + 0x12c]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.0043c950
mov eax, dword [esp + 0xc]
test eax, eax
je 0x870d94
cmp eax, 1
jne 0x870dfd
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x108]
mov eax, dword [eax + 0x104]
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov eax, dword [esp + 0x164]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x168]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
nop
call fcn.0042cca0
add esp, 0x15c
ret
nop
call fcn.0042cca0
add esp, 0x15c
ret
mov dword [esp + 0x180], 0
nop
call fcn.0042cca0
add esp, 0x15c
ret
nop
call fcn.004557a0
jmp fcn.008705f0