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

Disassembly:
push 0xffffffffffffffff
push 0x5a37fe
mov eax, dword fs:[0]
push eax
mov eax, 0x2484
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x2480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x2498]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24ac]
xor eax, eax
mov ebx, ecx
push 0x3fe
push eax
lea ecx, [esp + 0x9a]
push ecx
mov dword [esp + 0x34], ebx
mov word [esp + 0x9c], ax
call fcn.004fe380
push 0x2004
lea edx, [esp + 0x4a0]
push 0
push edx
call fcn.004fe380
add esp, 0x18
lea eax, [esp + 0x1c]
lea esi, [ebp + 0x24c0]
push eax
mov ecx, esi
call fcn.004066b0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x24a4], 0
call fcn.004066b0
lea edi, [esp + 0x18]
mov byte [esp + 0x24a0], 1
call fcn.00418bf0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x41cc52
push str.pdown:__
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x41cc52
sub eax, dword [esp + 0x1c]
sar eax, 1
js 0x41cc52
push 0x800
push esi
lea edx, [esp + 0x498]
push edx
jmp 0x41cd72
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x41ccf6
push str.http:__
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x41ccf6
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x41ccf6
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x24a0], 2
mov eax, dword [esp + 0x1c]
push eax
push str.pdown:__h360_s
lea edi, [esp + 0x2c]
call fcn.00407710
mov esi, dword [esp + 0x2c]
push 0x800
lea ecx, [esp + 0x49c]
push esi
push ecx
call fcn.004f8077
lea eax, [esi - 0x10]
add esp, 0x14
mov byte [esp + 0x24a0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cd7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cd7a
call fcn.0042d250
push 0
push ebx
push ebp
mov ecx, eax
call fcn.004bbe60
test eax, eax
jne 0x41cd64
mov byte [esp + 0x24a0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24a0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41d17f
push 0x800
push esi
lea ecx, [esp + 0x498]
push ecx
call fcn.004f8077
add esp, 0xc
push 0x200
lea edx, [ebp + 0x40]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004f8077
push 0x800
lea edi, [ebp + 0x3920]
lea ecx, [esp + 0x14a0]
push edi
push ecx
call fcn.004f8077
add esp, 0x18
lea esi, [esp + 0x20]
call fcn.00408ce0
mov byte [esp + 0x24a0], 3
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
push edi
test eax, eax
jg 0x41cdef
push 0x65e3a0
push str._sdrv_s
lea edx, [esp + 0x149c]
push 0x1000
push edx
call fcn.00407c70
add esp, 0x14
mov ebx, 4
jmp 0x41ce3a
push ecx
push str._sdrv_s
lea eax, [esp + 0x149c]
push 0x1000
push eax
call fcn.00407c70
add esp, 0x14
mov ebx, 4
push ebx
push str.drv
lea ecx, [esp + 0x28]
push ecx
call fcn.00409a20
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ce3a
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push edi
push 0x65e3a0
push str._sdrv_s
lea edi, [esp + 0x30]
mov byte [esp + 0x24ac], bl
call fcn.00407710
mov esi, dword [esp + 0x30]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cee9
lea ecx, [ebp + 0x3d30]
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004066b0
push ecx
mov byte [esp + 0x24a8], 5
lea eax, [esi - 0x10]
mov dword [esp + 0x34], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x24a8], bl
mov ebx, dword [esp + 0x30]
call fcn.0049c940
add esp, 8
test eax, eax
je 0x41cee4
push esi
push 0x5d7fa8
lea eax, [esp + 0x1498]
push 0x1000
push eax
call fcn.00407c70
add esp, 0x10
jmp 0x41d03d
mov ebx, 4
lea ecx, [esp + 0x1490]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cf48
lea ecx, [ebp + 0x3d30]
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004066b0
push ecx
mov byte [esp + 0x24a8], 6
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
lea ecx, [esp + 0x149c]
call fcn.004066b0
mov byte [esp + 0x24a8], bl
mov ebx, dword [esp + 0x30]
call fcn.0049c940
add esp, 8
test eax, eax
jne 0x41d03d
lea ebx, [eax + 4]
sub esp, 8
mov dword [esp + 0x34], esp
mov eax, esp
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x14a0]
mov dword [eax], 0
call fcn.004066b0
push ecx
mov byte [esp + 0x24b0], 7
mov edx, esp
mov dword [esp + 0x24], esp
push edx
lea ecx, [esp + 0x4a4]
call fcn.004066b0
mov edi, dword [esp + 0x38]
mov ecx, edi
mov byte [esp + 0x24b0], bl
call fcn.0049fc4f
add esp, 0x10
test eax, eax
jne 0x41cff5
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x24a0], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cfc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24a0], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cd0a
lea ecx, [ebp + 0x3d30]
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004066b0
push ecx
mov byte [esp + 0x24a8], 8
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
lea ecx, [esp + 0x149c]
call fcn.004066b0
mov byte [esp + 0x24a8], bl
mov ebx, edi
call fcn.0049c940
add esp, 8
test eax, eax
je 0x41cfa0
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24a8]
mov dword [esp + 0x38], ecx
mov eax, 0x4244a0
lea edx, [esp + 0x1490]
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edx
lea ecx, [ebp + 0x3b28]
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x90]
lea edx, [esp + 0x60]
mov dword [esp + 0x48], eax
mov ecx, 0xc
lea esi, [esp + 0x30]
lea edi, [esp + 0x60]
mov dword [esp + 0x58], ebp
push edx
lea ebx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
call fcn.004310d0
mov edi, dword [esp + 0x28]
mov esi, ebx
mov byte [esp + 0x24a0], 9
call fcn.0042d5f0
mov byte [esp + 0x24a0], 4
mov esi, dword [esp + 0x14]
add esi, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41d0da
test esi, esi
je 0x41d0da
lea ecx, [esi - 4]
test ecx, ecx
je 0x41d0da
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov byte [esp + 0x24a0], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24a0], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d12a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24a0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24a0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2480]
xor ecx, esp
call fcn.004f673f
add esp, 0x2490
ret 8