Function at 0x48f180
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 0x4d85bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], al
mov esi, dword [ebp + 8]
mov dword [esp + 0x14c], eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00410970
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x48f1e0
lea eax, [esp + 0x24]
push 0xfde9
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.00403980
mov byte [esp + 0x14c], 1
mov eax, dword [edi + 8]
mov ebx, dword [esp + 0x3c]
add edi, 8
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x48f22c
mov ecx, 0x104
mov eax, edi
call fcn.00403c30
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [esp + 0x14c], 0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x48f253
push eax
call fcn.0049f15f
add esp, 4
mov edx, dword [edi]
test edx, edx
jne 0x48f25d
xor eax, eax
jmp 0x48f277
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48f262
sub eax, ebx
sar eax, 1
js 0x48f41b
cmp eax, dword [edx - 8]
jg 0x48f41b
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48f2c6
cmp dword [esp + 0x38], 0x10
jb 0x48f2ad
mov edx, dword [esp + 0x24]
push edx
call fcn.0049f15f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, 0x10
je 0x48f2d5
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 1
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
push str.config
mov ebx, esi
mov byte [esp + 0x150], 2
call fcn.00410710
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 0x78], eax
mov eax, edx
test eax, eax
jne 0x48f340
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x78], eax
cmp dword [esp + 0x38], 0x10
jb 0x48f31f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0049f15f
add esp, 4
mov ecx, dword [esp + 0x144]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x507fec]
mov eax, dword [edx + 0xc]
mov ecx, 0x507fec
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
push str.mode
push esi
mov byte [esp + 0x158], 3
call fcn.00410890
test eax, eax
je 0x48f3a4
lea ecx, [esp + 0xc]
call fcn.00492370
test eax, eax
mov dword [esp + 0x14], eax
je 0x48f3a4
mov esi, dword [esi + 0x78]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0x10]
add esi, 0xc
lea ebx, [esp + 0x14]
call fcn.00497ff0
mov esi, dword [ebp + 8]
mov byte [esp + 0x14c], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f3cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x78]
mov ebx, dword [ecx + 0x40]
test ebx, ebx
je 0x48f3ea
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
test eax, eax
jne 0x48f406
mov ebx, dword [ebx + 0x40]
test ebx, ebx
jne 0x48f3d6
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x78], ecx
cmp dword [esp + 0x38], 0x10
jb 0x48f31f
mov edx, dword [esp + 0x24]
push edx
jmp 0x48f317
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
test eax, eax
je 0x48f3ea
mov dword [esi + 0x78], eax
jmp 0x48f340
push 0x80070057
call fcn.00401020
int3