Function at 0x450140
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4f3168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [0x4b42d0]
push dword [eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
call edi
test eax, eax
je 0x450418
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x450418
add eax, 0xfffffff0
push eax
call fcn.00402420
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], esi
mov ecx, dword [esi - 0xc]
mov dword [ebp - 4], 1
test ecx, ecx
jle 0x450204
lea eax, [ecx - 1]
test eax, eax
js 0x450279
cmp eax, ecx
jg 0x450279
cmp word [esi + eax*2], 0x5c
je 0x450204
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov esi, dword [ebp - 0x10]
push 0
push esi
push 0
call dword [0x4b42bc]
push esi
call edi
or edi, 0xffffffff
test eax, eax
je 0x4503fd
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0x14]
push 0x2e
push dword [ebx]
mov byte [ebp - 4], 4
call fcn.0048e14e
add esp, 8
test eax, eax
jne 0x450283
or eax, edi
jmp 0x450287
push 0x80070057
call fcn.00402400
sub eax, dword [ebx]
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.00403cb0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401cd0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4502c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [ebx]
call fcn.0048e14e
add esp, 8
test eax, eax
jne 0x4502d5
or eax, 0xffffffff
jmp 0x4502d9
sub eax, dword [ebx]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.00405280
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00401cd0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x450313
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp dword [ebx - 0xc], 0
je 0x45033d
cmp dword [edi - 0xc], 0
je 0x45033d
mov eax, dword [ebp + 0x18]
push edi
push dword [eax]
lea eax, [ebp - 0x14]
push ebx
push str._s__u._s
push eax
call fcn.0041c650
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00413e30
add esp, 0xc
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 7
call fcn.00401cd0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45037f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
push 0
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [0x4b4228]
test eax, eax
jne 0x45039d
mov ecx, dword [ebp + 8]
call fcn.004027d0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4503bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4503da
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4503fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x450418
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret