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

Disassembly:
push 0xffffffffffffffff
push 0x949180
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x99986c]
xor eax, esp
mov dword [esp + 0x6b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x99986c]
xor eax, esp
push eax
lea eax, [esp + 0x6c8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6e0]
mov esi, dword [esp + 0x6d8]
mov ebp, dword [esp + 0x6dc]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], edi
call fcn.0090a020
xor ebx, ebx
mov dword [esp + 0x6d0], ebx
lea ecx, [esp + 0x100]
call fcn.0090a020
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.0090a020
mov byte [esp + 0x6d0], 2
cmp esi, ebx
je 0x866e31
cmp word [esi], bx
je 0x866e31
push esi
call fcn.0090f4f0
add esp, 4
test al, al
je 0x866623
push 0x7b
jmp 0x866e33
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.008993e0
add esp, 0xc
test al, al
jne 0x86667c
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.009098c0
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.009098c0
mov dword [esp + 0x6d0], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.009098c0
xor al, al
jmp 0x866e79
mov eax, dword [esp + 0x5c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x1b0]
push edx
push eax
call fcn.0089ab20
add esp, 0x14
test al, al
jne 0x86675b
lea ecx, [esp + 0x4d8]
call fcn.0090a020
mov byte [esp + 0x6d0], 3
mov edx, dword [esp + 0x5c]
push ebx
lea ecx, [esp + 0x4dc]
push ecx
push edx
call fcn.008979c0
add esp, 0xc
test al, al
je 0x866730
mov eax, dword [esp + 0x4d8]
push 7
push 0x10
push eax
call fcn.00898b80
add esp, 0xc
test al, al
jne 0x866730
cmp edi, ebx
je 0x86670c
mov ecx, dword [0x998168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x86670c
mov eax, dword [esp + 0x4d8]
push eax
push str.__Parent_directory__ls_does_not_exist_
push edi
call fcn.0090aa60
add esp, 0xc
push 3
call dword [0x9822c8]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x4d8]
call fcn.009098c0
jmp 0x866e3c
cmp edi, ebx
je 0x866757
mov ecx, dword [0x998168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x866757
mov eax, dword [esp + 0x5c]
push eax
push str.__GetLongPathNameW_reports__ls_does_not_exist_
push edi
call fcn.0090aa60
add esp, 0xc
push 2
jmp 0x86670e
mov esi, dword [esp + 0x1a4]
push esi
call fcn.008972a0
add esp, 4
test al, al
je 0x86663a
lea ecx, [esp + 0x390]
call fcn.0090a020
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x390]
push ecx
push esi
call fcn.008f04d0
mov esi, eax
add esp, 8
lea ecx, [esp + 0x248]
mov dword [esp + 0x28], esi
call fcn.0090a020
mov byte [esp + 0x6d0], 5
push 1
lea edx, [esp + 0x24c]
push edx
push esi
call fcn.00865370
push ebx
lea eax, [esp + 0x110]
push eax
push esi
call fcn.008979c0
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x17], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.0085f110
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x30]
call fcn.00863ea0
lea ecx, [esp + 0x30]
call fcn.008601c0
mov dword [esp + 0x2c], eax
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esp + 0x248]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi*4 + 0x998258]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0087aff0
add esp, 0x18
cmp eax, 1
je 0x8669ed
cmp eax, ebx
jne 0x8668a6
push edi
lea eax, [esp + 0x54]
push eax
mov eax, dword [esi*4 + 0x998258]
lea ecx, [esp + 0x4e0]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
push 1
push ebx
push 0x959de8
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0x60
call fcn.0087a830
test eax, eax
jne 0x86696b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00866380
add esp, 4
test al, al
jne 0x866a36
push 0x91
jmp 0x8669ef
cmp eax, 2
jne 0x86696b
cmp byte [esp + 0x17], bl
je 0x86696b
cmp dword [esp + 0x1c], 1
jle 0x86696b
lea ecx, [esp + 0x2ec]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xc
mov eax, dword [esp + 0x100]
push 1
lea edx, [esp + 0x2f0]
push edx
push eax
call fcn.00865370
mov eax, dword [esp + 0x2f8]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi*4 + 0x998258]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0087aff0
mov edi, eax
mov eax, dword [esi*4 + 0x998258]
add esp, 0x24
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.0085f250
mov eax, dword [eax]
and eax, 7
cmp edi, ebx
jne 0x866941
cmp eax, 4
je 0x866cf5
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jle 0x866953
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.009098c0
mov edi, dword [esp + 0x20]
inc esi
cmp esi, 2
jl 0x866810
mov esi, dword [esp + 0x2c]
cmp esi, 3
je 0x8669ed
cmp esi, 4
je 0x8669ed
lea ecx, [esp + 0x57c]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xd
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x57c]
push ecx
push edx
call fcn.00912880
add esp, 8
cmp esi, 1
jne 0x866e07
mov eax, dword [esp + 0x57c]
push eax
call dword [0x982260]
or edi, 0xffffffff
cmp eax, edi
jne 0x866d11
push 2
call dword [0x9822c8]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x57c]
jmp 0x866c84
push 2
call dword [0x9822c8]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 5
lea ecx, [esp + 0x30]
call fcn.00860180
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x248]
call fcn.009098c0
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x390]
call fcn.009098c0
jmp 0x866e3c
cmp byte [esp + 0x4d8], 1
je 0x866a55
test byte [esp + 0x520], 0x10
jne 0x866b17
push 0x10b
jmp 0x8669ef
lea ecx, [esp + 0x434]
call fcn.0090a020
mov byte [esp + 0x6d0], 7
mov edx, dword [esp + 0x248]
push edx
lea eax, [esp + 0x438]
push eax
call fcn.0085f920
add esp, 8
lea ecx, [esp + 0x620]
call fcn.0090a020
mov byte [esp + 0x6d0], 8
mov edx, dword [esp + 0x434]
lea ecx, [esp + 0x620]
push ecx
push edx
call fcn.00912880
mov eax, dword [esp + 0x628]
add esp, 8
push eax
call dword [0x982268]
mov dword [ebp], eax
cmp eax, ebx
jne 0x866aef
mov byte [esp + 0x6d0], 7
lea ecx, [esp + 0x620]
call fcn.009098c0
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x434]
call fcn.009098c0
jmp 0x8669f8
mov byte [esp + 0x6d0], 7
lea ecx, [esp + 0x620]
call fcn.009098c0
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x434]
call fcn.009098c0
lea ecx, [esp + 0x2ec]
call fcn.0090a020
mov byte [esp + 0x6d0], 9
or edi, 0xffffffff
push edi
push 0x95eef8
lea ecx, [esp + 0x2f4]
call fcn.0090a030
push edi
push ebx
lea ecx, [esp + 0x250]
push ecx
lea ecx, [esp + 0x2f8]
call fcn.0090a180
mov esi, dword [esi*4 + 0x998258]
mov edx, dword [esp + 0x18]
push esi
push edx
lea ecx, [esp + 0x38]
call fcn.0085f250
mov eax, dword [eax]
mov edx, dword [esp + 0x2ec]
and eax, 7
cmp eax, 4
setne al
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
push 1
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x80000002
push eax
call fcn.0087db10
add esp, 0x14
cmp word [esp + 0x4e0], bx
je 0x866c69
cmp byte [esp + 0x17], bl
je 0x866c69
lea ecx, [esp + 0x620]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xa
mov edx, dword [esp + 0x100]
push 1
lea ecx, [esp + 0x624]
push ecx
push edx
call fcn.00865370
add esp, 0xc
lea ecx, [esp + 0x434]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xb
push edi
push 0x95eef8
lea ecx, [esp + 0x43c]
call fcn.0090a030
push edi
push ebx
lea eax, [esp + 0x628]
push eax
lea ecx, [esp + 0x440]
call fcn.0090a180
mov edx, dword [esp + 0x434]
push ebx
lea ecx, [esp + 0x4e4]
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x80000002
push eax
call fcn.0087cd50
add esp, 0x14
mov byte [esp + 0x6d0], 0xa
lea ecx, [esp + 0x434]
call fcn.009098c0
mov byte [esp + 0x6d0], 9
lea ecx, [esp + 0x620]
call fcn.009098c0
call fcn.008f6a00
mov dword [ebp], 1
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.009098c0
mov byte [esp + 0x6d0], 5
lea ecx, [esp + 0x30]
call fcn.00860180
mov byte [esp + 0x6d0], 4
lea ecx, [esp + 0x248]
call fcn.009098c0
mov byte [esp + 0x6d0], 2
lea ecx, [esp + 0x390]
call fcn.009098c0
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.009098c0
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.009098c0
mov dword [esp + 0x6d0], edi
jmp 0x866e6e
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x2ec]
call fcn.009098c0
jmp 0x8669f8
test al, 0x10
jne 0x866d1f
push 0x10b
jmp 0x8669d0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00866380
add esp, 4
test al, al
jne 0x866d3a
push 0x91
jmp 0x8669d0
lea ecx, [esp + 0x434]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xe
mov eax, dword [esp + 0x5c]
push 1
lea edx, [esp + 0x438]
push edx
push eax
call fcn.00865370
add esp, 0xc
lea ecx, [esp + 0x2ec]
call fcn.0090a020
mov byte [esp + 0x6d0], 0xf
push edi
push 0x95eef8
lea ecx, [esp + 0x2f4]
call fcn.0090a030
push edi
push ebx
lea ecx, [esp + 0x43c]
push ecx
lea ecx, [esp + 0x2f8]
call fcn.0090a180
mov edx, dword [esp + 0x2ec]
push 1
push 1
push edx
lea eax, [esp + 0x3c]
push 0x80000002
push eax
call fcn.0087db10
add esp, 0x14
call fcn.008f6a00
mov dword [ebp], 1
mov byte [esp + 0x6d0], 0xe
lea ecx, [esp + 0x2ec]
call fcn.009098c0
mov byte [esp + 0x6d0], 0xd
lea ecx, [esp + 0x434]
call fcn.009098c0
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x57c]
jmp 0x866c84
mov ecx, dword [esp + 0x57c]
push ecx
call dword [0x982268]
mov dword [ebp], eax
mov byte [esp + 0x6d0], 6
lea ecx, [esp + 0x57c]
call fcn.009098c0
jmp 0x8669f8
push 3
call dword [0x9822c8]
mov dword [ebp], ebx
mov byte [esp + 0x6d0], 1
lea ecx, [esp + 0x1a4]
call fcn.009098c0
mov byte [esp + 0x6d0], bl
lea ecx, [esp + 0x100]
call fcn.009098c0
mov dword [esp + 0x6d0], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.009098c0
mov al, 1
mov ecx, dword [esp + 0x6c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6b0]
xor ecx, esp
call fcn.0091b0aa
add esp, 0x6c0
ret