Function at 0x4150f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd249
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x54c728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.004ccab0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x415142
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415185
lea eax, [ebp - 0x810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x41539b
push 0
mov dword [ebp - 0x830], 0
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x82c], 0
push 0x50a0a4
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], 0
call fcn.004083c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x870]
push eax
lea ecx, [esi + 0x38]
call fcn.00430050
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4151ef
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004ab930
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x870]
call fcn.00405b20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x840]
call fcn.00405b20
call fcn.00414410
mov ecx, eax
test ecx, ecx
je 0x4153b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x874], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x874]
push 0x50ac10
call fcn.00413920
test al, al
jne 0x415269
push 0x24
push 0x50ac10
lea ecx, [ebp - 0x874]
call fcn.004154a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
lea ecx, [ebp - 0x878]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00412240
mov byte [ebp - 4], 7
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.004ab420
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4152c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.004042a0
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x87c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415300
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x878]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415321
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x874]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x415340
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push 0xfde9
cmovae eax, dword [ebp - 0x828]
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.004ab7f0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x858]
push eax
push edi
call fcn.004342b0
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x858]
call fcn.00405b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00402770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a995c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ee20
int3