Function at 0x10048250
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10093c6f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1004848f
push ebx
push 0x100b6090
mov esi, 0x100b6050
push esi
push ebx
push eax
call fcn.10086c45
add esp, 0x14
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x100482b3
mov al, 1
jmp 0x10048491
push ebx
push 0x100b6130
push esi
push ebx
push dword [edi + 4]
call fcn.10086c45
add esp, 0x14
cmp eax, ebx
je 0x100482d6
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 4]
test al, al
je 0x100482ac
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.10036d17
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.1007924a
cmp dword [esp + 0x1c], ebx
je 0x10048459
push ebx
push 0x100b6154
push esi
push ebx
push dword [edi + 4]
call fcn.10086c45
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x100482ac
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.10036d17
mov dword [esp + 0x48], ebx
cmp byte [ebp + 0xc], bl
je 0x100483f2
lea esi, [esp + 0x20]
mov eax, edi
call fcn.10036883
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.10036d38
push dword [ebp + 0x14]
mov byte [esp + 0x4c], 2
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
push edi
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, esi
lea esi, [esp + 0x38]
call fcn.10047f16
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.1007924a
mov ecx, esi
call fcn.10047f53
mov esi, dword [ebp + 0x14]
cmp eax, ebx
jge 0x100483cf
push eax
push dword [esp + 0x18]
push 0x1000d3b0
push 7
call fcn.10023a0d
mov eax, dword [esp + 0x48]
add esp, 0x10
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esp + 0x14]
jmp 0x10048487
push dword [esp + 0x14]
push 0x1000d498
push 4
call fcn.10023a0d
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x44]
add esp, 0xc
add eax, 0xfffffff0
call fcn.1007924a
cmp byte [ebp + 0x10], bl
je 0x10048448
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.10036d17
push dword [ebp + 0x14]
mov byte [esp + 0x4c], 6
call fcn.100484ab
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.1007924a
cmp dword [esp + 0x18], 0xffffffff
je 0x100483c6
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004843d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.1007924a
jmp 0x100482ac
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.10036d17
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x48], 7
push dword [eax]
push 0x1000d4e0
push 4
call fcn.10023a0d
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.1007924a
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10