Function at 0x485b00
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bd344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x48614f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00484f30
mov byte [ebp - 4], 2
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call fcn.00485750
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x2c]
je 0x485e74
test esi, esi
jne 0x485bb2
xor ecx, ecx
jmp 0x485bc6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485bb7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004631c0
mov edi, dword [ebp - 0x10]
push 0x5c
push edi
call fcn.0058261e
add esp, 8
test eax, eax
jne 0x485be7
or eax, 0xffffffff
jmp 0x485beb
sub eax, edi
sar eax, 1
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00487bc0
mov byte [ebp - 4], 3
lea esi, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x485c51
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x485c42
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x485c42
push edx
call fcn.00488a00
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x485c3a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
jmp 0x485c51
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004631c0
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485c6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485ddf
xor ebx, ebx
test ebx, ebx
js 0x485ddc
cmp ebx, dword [edi - 0xc]
jge 0x485ddc
lea eax, [edi + ebx*2]
push 0x5c
push eax
call fcn.00582557
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x485ddc
sub ebx, edi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x485ddc
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x48614f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
add ebx, 1
mov byte [ebp - 4], 4
mov eax, 0
cmovns eax, ebx
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi - 0xc]
jl 0x485cfb
lea eax, [edi - 0x10]
push eax
call fcn.00488a00
add esp, 4
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x485d27
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x485d0b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x485d17
call fcn.0045d8a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push edi
call fcn.004880b0
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 5
lea ecx, [esi - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
cmp edx, ecx
je 0x485d8a
cmp dword [ecx + 0xc], 0
jl 0x485d78
mov esi, dword [ebp - 0x20]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x485d78
push edx
call fcn.00488a00
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485d70
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x485d87
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.004631c0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485da3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485db7
push esi
call fcn.0059475d
add esp, 4
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x485c80
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x485c80
or ebx, 0xffffffff
call fcn.0059b397
push 0x4078
call fcn.0057eb4e
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x485ec7
push 0x4078
push esi
mov dword [esi], 0
mov dword [0x5e8d00], 0x200
call fcn.0057eb7e
mov ecx, dword [ebp - 0x30]
add esp, 8
xor esi, esi
mov byte [ebp - 4], 0
test ecx, ecx
je 0x48611f
mov edx, dword [ebp - 0x2c]
push ecx
call fcn.00488dc0
mov eax, dword [ebp - 0x28]
add esp, 4
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x486100
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486159
jmp 0x486100
push 8
mov byte [esi + 0x14], 1
mov dword [esi + 8], 0
mov dword [0x5e8d00], 0
call fcn.0057eb4e
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 2
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x485f71
mov edi, eax
nop dword [eax]
push 0x5c
push dword [esi]
call fcn.0058261e
add esp, 8
test eax, eax
jne 0x485f15
or eax, 0xffffffff
jmp 0x485f19
sub eax, dword [esi]
sar eax, 1
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00487c30
sub esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
mov ecx, edi
push dword [esi]
call fcn.00458c40
add esp, 0xc
test eax, eax
jne 0x485f48
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485f66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x2c]
jne 0x485f00
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00484f30
push 0x420bb8
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.00487a40
add esp, 4
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x14]
mov edx, 0x420bb8
mov ecx, esi
push dword [eax]
call fcn.00458c40
mov byte [ebp - 4], 7
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485fc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485fe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00484f30
push 0x420bc8
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call fcn.00487a40
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, 0x420bc8
mov ecx, esi
push dword [eax]
call fcn.00458c40
mov byte [ebp - 4], 9
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486034
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi], 2
je 0x48606e
mov ecx, dword [ebp - 0x30]
mov esi, 1
mov dword [0x5e8d00], 0x80000
jmp 0x485e76
mov esi, dword [esi + 4]
mov dword [ebp - 0x1c], 0
cmp byte [esi + 0x24], 0
jne 0x486088
mov ecx, esi
call fcn.00458b70
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x18]
mov byte [esi + 0x24], 1
test ecx, ecx
je 0x4860a0
cmp dword [esi + 4], 0
je 0x4860a0
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 4]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
test eax, eax
je 0x4860bd
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x4860cd
push eax
call ecx
mov eax, dword [ebp - 0x1c]
push 0x4078
push esi
mov dword [esi], 0
mov dword [0x5e8d00], eax
call fcn.0057eb7e
push 8
push dword [ebp - 0x14]
call fcn.0057eb7e
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov esi, 1
jmp 0x485e76
push edx
push ecx
call fcn.0057eb7e
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48613b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045d5a0
call fcn.0058a276
int3