Function at 0x489120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612bb9
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x6c0924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00407560
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
cmp dword [esi - 4], 1
mov dword [ebp - 4], 0
jle 0x48917d
push dword [esi - 0xc]
lea ecx, [ebp - 0x44]
call fcn.00402fa0
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005b555a
add esp, 8
test eax, eax
js 0x4894de
cmp eax, dword [esi - 8]
jg 0x4894de
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.00478bf0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x4892ec
push 0x2e
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x40], cl
lea ecx, [ebp - 0x40]
push str.d:_buildlib_common_netulcurldllhttpcurl.cpp
mov dword [ebp - 0x2c], 0xf
call fcn.00408d00
push 3
push 0x622424
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00408d00
mov byte [ebp - 4], 2
call fcn.00478bf0
mov ebx, eax
lea ecx, [ebp - 0xdc]
push 0x1f3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d3b0
mov edi, eax
push str.check_dir_exist:
push edi
mov byte [ebp - 4], 3
call fcn.0040e670
add esp, 8
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0045d7d0
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.0040ec90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x48929f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x489295
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4894e8
push edx
push ecx
call fcn.0052dbb4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4892e9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4892df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4894ed
push edx
push ecx
call fcn.0052dbb4
add esp, 8
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x4894a9
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4893c7
call fcn.00478bf0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x4893c7
push 0x2e
push str.d:_buildlib_common_netulcurldllhttpcurl.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00408d00
push 3
push 0x622424
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.00408d00
mov byte [ebp - 4], 5
call fcn.00478bf0
mov ebx, eax
lea ecx, [ebp - 0xdc]
push 0x1f7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d3b0
mov edi, eax
push str.SHCreateDirectory_err:
push edi
mov byte [ebp - 4], 6
call fcn.0040e670
add esp, 8
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0045d7d0
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.0040ec90
lea ecx, [ebp - 0x40]
call fcn.00405e70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00405e70
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.00478bf0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4894a9
push 0x2e
push str.d:_buildlib_common_netulcurldllhttpcurl.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00408d00
push 3
push 0x622424
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00408d00
mov byte [ebp - 4], 8
call fcn.00478bf0
mov ebx, eax
lea ecx, [ebp - 0xdc]
push 0x1fa
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d3b0
mov edi, eax
push str.create_directory:
push edi
mov byte [ebp - 4], 9
call fcn.0040e670
push esi
push edi
call fcn.0040b300
push str._result
push edi
call fcn.0040e670
add esp, 0x18
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0045d7d0
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.0040ec90
lea ecx, [ebp - 0x40]
call fcn.00405e70
lea ecx, [ebp - 0x28]
call fcn.00405e70
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4894c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 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 4
push 0x80070057
call fcn.00402c00
call fcn.005b4ae9
call fcn.005b4ae9
int3