Function at 0x10058580
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1009e286
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [esp + 0x270]
mov edi, dword [esp + 0x274]
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100587dc
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
push edx
lea ebx, [esp + 0x28]
lea esi, [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.10057720
mov ebp, dword [esp + 0x1c]
test eax, eax
je 0x100587b2
mov eax, dword [esp + 0x18]
push eax
mov ecx, ebp
call fcn.100577d0
test eax, eax
je 0x100587b2
push ebp
call dword [0x100c5950]
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x100587b4
lea ecx, [esp + 0x28]
push ecx
push 1
push ebx
push ebp
mov dword [esp + 0x38], ebx
call dword [0x100c5954]
cmp eax, ebx
je 0x100587b4
add eax, 0xc
cmp dword [eax], ebx
je 0x100587b4
mov edi, eax
jmp 0x10058674
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
push ebx
push eax
push ebp
push esi
call dword [0x100c5958]
mov esi, eax
cmp esi, ebx
je 0x100587a5
push str.ntoskrnl.exe
push esi
call fcn.10079510
add esp, 8
test eax, eax
je 0x100587a5
push 0x100ae61c
push esi
call fcn.10079510
add esp, 8
test eax, eax
je 0x100587a5
push 0x206
lea eax, [esp + 0x5a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x60], dx
call fcn.10079c60
mov eax, esi
add esp, 0xc
mov dword [esp + 0x18], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100586e0
sub eax, edx
inc eax
push eax
push esi
push 0x104
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.10079813
add esp, 0x14
cmp dword [esp + 0x18], ebx
je 0x100587a5
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov dword [esp + 0x268], ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.10057a00
test eax, eax
je 0x10058791
sub esp, 0x1c
lea eax, [esp + 0x54]
mov esi, esp
mov dword [esp + 0x50], esp
push eax
call fcn.100066a0
mov byte [esp + 0x284], 1
mov esi, dword [esp + 0x48]
push esi
mov byte [esp + 0x288], bl
call fcn.10058450
cmp eax, ebx
jne 0x10058791
lea eax, [esp + 0x38]
mov ebx, esi
call fcn.10059b70
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x10058784
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push eax
push esi
call fcn.10058580
xor ebx, ebx
mov dword [esp + 0x268], 0xffffffff
lea esi, [esp + 0x38]
call fcn.100531f0
add edi, 0x14
cmp dword [edi], ebx
jne 0x10058670
jmp 0x100587b4
xor ebx, ebx
cmp ebp, ebx
je 0x100587bf
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x100587d0
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x100587dc
push eax
call esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.100755ed
add esp, 0x258
ret 8