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

Disassembly:
push 0xffffffffffffffff
push 0x5a2de8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
cmp dword [ebx + 0x14], 0
je 0x420745
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x14], 0
je 0x420745
call fcn.0041a070
mov edx, eax
mov edi, esi
call fcn.00406780
push esi
mov edx, 0x5da430
call fcn.00409e60
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebx + 0x18], 8
jb 0x4204c3
mov edx, dword [ebx + 4]
jmp 0x4204c6
lea edx, [ebx + 4]
push esi
call fcn.00409e60
push esi
mov edx, str..apk
call fcn.00409e60
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420573
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
call fcn.004073f0
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0049c799
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 0
cmp dword [eax + 0x18], 8
jb 0x420522
mov eax, dword [eax + 4]
jmp 0x420525
add eax, 4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42053a
push 0x80004005
call fcn.00401050
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.004f69f9
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov eax, ecx
test eax, eax
jne 0x4206fe
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00406760
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 1
cmp dword [ebp + 0x18], 8
lea ebx, [ebp + 4]
jb 0x42059f
mov ecx, dword [ebx]
jmp 0x4205a1
mov ecx, ebx
lea edx, [esp + 0x2c]
push edx
call fcn.004066b0
lea edi, [esp + 0x2c]
mov byte [esp + 0x24], 2
call fcn.00418bf0
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
jl 0x420733
push str.pdown:__
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x34]
add esp, 8
test eax, eax
je 0x420603
sub eax, ecx
sar eax, 1
js 0x420603
cmp dword [ebp + 0x18], 8
jb 0x4205f6
mov edx, dword [ebx]
lea edi, [esp + 0x10]
call fcn.00406780
jmp 0x420649
mov edx, ebx
lea edi, [esp + 0x10]
call fcn.00406780
jmp 0x420649
cmp dword [ecx - 0xc], 0
jl 0x420733
push str.http:__
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x420733
sub eax, dword [esp + 0x2c]
sar eax, 1
js 0x420733
cmp dword [ebp + 0x18], 8
jb 0x420637
mov ebx, dword [ebx]
push ebx
push str.pdown:__h360_s
lea edi, [esp + 0x18]
call fcn.00407710
add esp, 8
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov eax, dword [esi]
mov dword [esp + 0x1c], esp
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.004073f0
mov ecx, dword [esp + 0x44]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x34], 2
call fcn.0049fc4f
add esp, 0x10
test eax, eax
je 0x420733
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x38]
push eax
call fcn.0049c799
add esp, 8
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x24], 4
cmp dword [ecx + 0x18], 8
jb 0x4206db
mov ecx, dword [ecx + 4]
jmp 0x4206de
add ecx, 4
lea edx, [esp + 0x34]
push edx
call fcn.00406810
test eax, eax
jne 0x420721
lea ecx, [esp + 0x34]
call fcn.00406760
lea ecx, [esp + 0x2c]
call fcn.00406760
lea ecx, [esp + 0x10]
call fcn.00406760
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x34]
call fcn.00406760
lea ecx, [esp + 0x2c]
call fcn.00406760
lea ecx, [esp + 0x10]
call fcn.00406760
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0xc