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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007b598
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call edx
mov eax, dword [esp + 0x14]
push eax
push 0x10085ff0
call fcn.1003f70f
add esp, 8
cmp dword [esp + 0x14], edi
je 0x1001f7c2
mov ecx, dword [esi]
mov eax, dword [ecx + 0x34]
lea edx, [esp + 0x1c]
push edx
push esi
call eax
test eax, eax
jl 0x1001f7c2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x80058000
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x1001f7c2
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [esp + 0x5c], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1001f660
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x5c]
call fcn.10009460
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
lea esi, [ecx + 2]
jmp 0x1001f6a0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1001f6a0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x40]
call fcn.10009460
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x5c]
mov ecx, esi
mov byte [esp + 0x84], 1
call fcn.1001f2f0
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x1001f6e9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1005f31a
add esp, 4
xor edx, edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
mov byte [esp + 0x80], 4
cmp dword [esp + 0x70], esi
jb 0x1001f713
mov eax, dword [esp + 0x5c]
push eax
call fcn.1005f31a
add esp, 4
lea edx, [esp + 0x20]
push edx
xor ecx, ecx
push edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
call fcn.1001f180
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.10021430
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push str.file_open__dir:_ls__names:_ls__bBlock:_d
call fcn.1003f70f
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, edi
je 0x1001f7a9
mov ebx, dword [esp + 0x34]
cmp eax, ebx
je 0x1001f7a0
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x1001f783
mov eax, dword [esi - 0x14]
push eax
call fcn.1005f31a
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, ebx
jne 0x1001f772
mov eax, dword [esp + 0x30]
push eax
call fcn.1005f31a
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.1005f31a
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp eax, edi
je 0x1001f7d3
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x1001f7de
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x1001f7ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], edi
je 0x1001f80e
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8