Function at 0x10087ef0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10167fc6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ebx
call fcn.10087e70
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10087f60
lea edi, [ebx + 0x70]
call fcn.10079170
mov eax, 0x80004005
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
cmp eax, 3
jl 0x10088881
mov edi, dword [ebx + 8]
xor esi, esi
push esi
lea eax, [esp + 0x54]
call fcn.100164f0
mov dword [esp + 0x54], 0xffffffff
mov byte [esp + 0x5c], 0
push esi
push esi
push 3
push esi
push 1
mov dword [esp + 0xd4], esi
mov eax, dword [esp + 0x64]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10087ff3
call fcn.10023ad0
mov esi, eax
lea edi, [ebx + 0x70]
mov dword [esp + 0x58], esi
call fcn.10079170
test esi, esi
jle 0x10087fd0
and esi, 0xffff
or esi, 0x80070000
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x58], esi
push ecx
lea esi, [esp + 0x54]
mov dword [esp + 0x58], eax
mov byte [esp + 0x60], 0
call fcn.10023400
mov edi, dword [esp + 0x7c]
mov eax, edi
lea esi, [esp + 0x3c]
call fcn.1002fe90
mov byte [esp + 0xc0], 1
mov edx, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0xb0]
lea esi, [esp + 0x54]
call fcn.100235b0
test al, al
jne 0x1008808a
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x10088050
and eax, 0xffff
or eax, 0x80070000
cmp byte [esp + 0x44], 0
mov esi, eax
je 0x10088067
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [esp + 0x50]
call fcn.100233d0
xor ecx, ecx
cmp dword [esp + 0xac], edi
jne 0x100880a7
cmp ecx, dword [esp + 0x80]
je 0x100880e1
cmp byte [esp + 0x44], cl
je 0x100880bb
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, 0x80004005
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
lea edi, [ebx + 0x70]
mov dword [esp + 0x64], edx
mov dword [esp + 0x38], 4
mov dword [esp + 0x88], edi
call fcn.10079170
mov eax, edi
lea ecx, [esp + 0x28]
call fcn.1008ac00
mov dword [esp + 0x14], 0
lea esi, [esp + 0x14]
mov byte [esp + 0xc0], 3
call fcn.10009f80
push eax
mov ebx, 0x101e9504
call fcn.10017960
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x1008819d
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10088155
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x28]
mov byte [esp + 0xc0], 1
call fcn.1000a090
cmp byte [esp + 0x44], bl
je 0x1008817a
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, edi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x18], ebx
lea esi, [esp + 0x18]
mov byte [esp + 0xc0], 4
call fcn.10009f80
push eax
mov ebx, 0x101e8f18
call fcn.10017960
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x34], edi
cmp edi, ebx
jge 0x100881ee
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10088139
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
jmp 0x10088139
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 5
call fcn.10009f80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov ecx, eax
call fcn.1004ae40
mov dword [esp + 0x6c], ebx
cmp dword [esp + 0x64], ebx
jle 0x100887f8
nop
lea edi, [esp + 0x30]
lea esi, [esp + 0x38]
lea ebx, [esp + 0x3c]
call fcn.1008a4f0
mov edi, eax
test edi, edi
js 0x1008889d
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x3c]
movzx edx, word [eax + esi + 4]
mov ecx, dword [eax + esi]
mov ebx, dword [eax + esi + 6]
add esi, 0xa
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x38], esi
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xc4], 7
mov eax, dword [esp + 0x1c]
push 0x101e93d4
mov dword [esp + 0x34], 0
mov ecx, dword [eax]
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
js 0x10088903
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], eax
cmp ebx, eax
jle 0x10088509
jmp 0x100882d0
lea edi, [esp + 0xa8]
lea esi, [esp + 0x38]
lea ebx, [esp + 0x3c]
call fcn.1008a4f0
mov edi, eax
test edi, edi
js 0x1008894c
xor edi, edi
push edi
mov byte [esp + 0xc4], 9
mov ebx, dword [esp + 0xac]
push edi
push edi
lea esi, [esp + 0x40]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x40], edi
call fcn.100163a0
push edi
push edi
mov byte [esp + 0xc8], 0xa
push edi
lea esi, [esp + 0x74]
mov dword [esp + 0x74], edi
call fcn.100163a0
push edi
mov edi, ebx
lea eax, [esp + 0x9c]
mov byte [esp + 0xc4], 0xb
call fcn.100164f0
mov ecx, esi
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov byte [esp + 0xcc], 0xc
call fcn.1007f1f0
add esp, 0xc
lea eax, [esp + 0x98]
call fcn.100164d0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 4]
mov edi, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov dword [esp + 0x70], esi
lea ecx, [esp + 0xa4]
push ecx
mov byte [esp + 0xc4], 0xe
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push esi
push edi
call edx
mov byte [esp + 0xc0], 0xd
test esi, esi
je 0x100883b7
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
lea esi, [esp + 0x60]
mov dword [esp + 0x20], eax
call fcn.10009f80
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [esp + 0xa8]
push eax
push ecx
call edx
mov eax, dword [esp + 0x34]
cmp dword [eax - 4], 0
je 0x100884af
mov dword [esp + 0x20], 0
mov eax, esi
lea ecx, [esp + 0x8c]
mov byte [esp + 0xc0], 0xf
call fcn.1002c3f0
mov byte [esp + 0xc0], 0x10
mov eax, dword [eax]
mov edi, dword [eax]
lea esi, [esp + 0x20]
mov dword [esp + 0x70], eax
call fcn.10009f80
mov ecx, dword [esp + 0x70]
mov edx, dword [edi + 0xc]
push eax
push ecx
call edx
lea esi, [esp + 0x8c]
mov byte [esp + 0xc0], 0xf
call fcn.1000a090
lea eax, [esp + 0x20]
lea ecx, [esp + 0xa0]
call fcn.1008ac30
mov byte [esp + 0xc0], 0x11
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push ebx
push eax
call edx
lea esi, [esp + 0xa0]
mov byte [esp + 0xc0], 0xf
call fcn.1000a090
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], esp
test eax, eax
je 0x10088495
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x64]
call fcn.10029110
lea esi, [esp + 0x20]
mov byte [esp + 0xc0], 0xd
call fcn.1000a090
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x78]
mov ecx, dword [eax]
push edx
push edi
push eax
mov eax, dword [ecx + 0x20]
call eax
lea esi, [esp + 0x60]
mov byte [esp + 0xc0], 0xb
call fcn.1000a090
lea eax, [esp + 0x68]
call fcn.100164d0
lea eax, [esp + 0x34]
call fcn.100164d0
test ebx, ebx
je 0x100884f3
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
mov dword [esp + 0x78], edi
cmp edi, dword [esp + 0x94]
jl 0x100882d0
mov esi, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xc0], 0x12
cmp dword [esp + 0x74], 5
je 0x1008861b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x101e9474
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ebx, eax
cmp ebx, edi
jge 0x10088633
lea esi, [esp + 0x1c]
mov byte [esp + 0xc0], 8
call fcn.1000a090
lea esi, [esp + 0x4c]
mov byte [esp + 0xc0], 7
call fcn.1000a090
lea esi, [esp + 0x2c]
mov byte [esp + 0xc0], 6
call fcn.1000a090
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10088589
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.1000a090
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x100885b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x100885d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], edi
lea esi, [esp + 0x28]
mov byte [esp + 0xc0], 1
call fcn.1000a090
cmp byte [esp + 0x44], 0
je 0x100885f8
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, 0x101e9524
lea edi, [esp + 0x1c]
call fcn.100368d0
mov edi, eax
test edi, edi
js 0x1008893b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x100886a4
push ecx
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x80], esp
test eax, eax
je 0x10088693
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x24]
call fcn.1008af20
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov byte [esp + 0xc0], 0x13
test edi, edi
je 0x10088708
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push eax
add esi, 4
push edi
mov dword [esp + 0x40], esi
call edx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x38]
lea ebx, [esp + 0x3c]
call fcn.1008a4f0
mov edi, eax
test edi, edi
js 0x1008895f
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x9c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push esi
push eax
call edx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebx
mov edi, dword [esp + 0x20]
jmp 0x1008870e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov dword [esp + 0x34], eax
test eax, eax
js 0x10088a0f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.100891b0
mov dword [esp + 0x34], eax
test eax, eax
jns 0x10088791
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x90]
call fcn.1008ac00
mov byte [esp + 0xc0], 0x14
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
lea esi, [esp + 0x90]
mov byte [esp + 0xc0], 0x13
call fcn.1000a090
mov eax, 1
sub dword [esp + 0x6c], eax
sub dword [esp + 0x64], eax
mov byte [esp + 0xc0], 0x12
test edi, edi
je 0x100887a5
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea esi, [esp + 0x1c]
mov byte [esp + 0xc0], 8
call fcn.1000a090
lea esi, [esp + 0x4c]
mov byte [esp + 0xc0], 7
call fcn.1000a090
lea esi, [esp + 0x2c]
mov byte [esp + 0xc0], 6
call fcn.1000a090
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100887e3
push eax
call ebx
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x6c], eax
cmp eax, dword [esp + 0x64]
jl 0x10088220
xor ebx, ebx
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10088814
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10088830
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1008884c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10088864
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0x44], bl
je 0x10088878
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [esp + 0x50]
call fcn.10023300
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.1000a090
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x100888cc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x100888e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
lea esi, [esp + 0x28]
mov byte [esp + 0xc0], 1
call fcn.1000a090
cmp byte [esp + 0x44], 0
jmp 0x1008816a
lea esi, [esp + 0x2c]
mov byte [esp + 0xc0], 6
call fcn.1000a090
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x10088925
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.1000a090
jmp 0x100881c9
lea esi, [esp + 0x1c]
mov byte [esp + 0xc0], 8
call fcn.1000a090
lea esi, [esp + 0x4c]
mov byte [esp + 0xc0], 7
call fcn.1000a090
jmp 0x10088903
mov byte [esp + 0xc0], 0x12
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x1c]
mov byte [esp + 0xc0], 8
call fcn.1000a090
lea esi, [esp + 0x4c]
mov byte [esp + 0xc0], 7
call fcn.1000a090
lea esi, [esp + 0x2c]
mov byte [esp + 0xc0], 6
call fcn.1000a090
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100889b5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.1000a090
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100889e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100888e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
jmp 0x100888e8
mov byte [esp + 0xc0], 0x12
test edi, edi
je 0x10088a23
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea esi, [esp + 0x1c]
mov byte [esp + 0xc0], 8
call fcn.1000a090
lea esi, [esp + 0x4c]
mov byte [esp + 0xc0], 7
call fcn.1000a090
lea esi, [esp + 0x2c]
mov byte [esp + 0xc0], 6
call fcn.1000a090
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, edi
je 0x10088a63
push eax
call ebx
lea esi, [esp + 0x24]
mov byte [esp + 0xc0], 4
call fcn.1000a090
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x10088a90
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10088aac
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], edi
lea esi, [esp + 0x28]
mov byte [esp + 0xc0], 1
call fcn.1000a090
cmp byte [esp + 0x44], 0
jmp 0x10088868