Function at 0x10001700
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10011f7c
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10019024]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
mov edi, dword [esp + 0x118]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], 0xb4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x58]
call fcn.10008260
call fcn.100118a0
lea ecx, [esp + 0x58]
mov ebx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
push edi
push str.strUrl:_s_fileLen:_d
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
xor ecx, ecx
add esp, 0x10
cmp ebp, ebx
setge cl
push 1
dec ecx
and ecx, ebp
mov ebx, ecx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::constructor_void_]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x110], ebp
push 0x40
lea ecx, [esp + 0x78]
jle 0x100017d5
mov edx, dword [esp + 0x1c]
push 0x2a
push edx
jmp 0x100017dc
mov eax, dword [esp + 0x1c]
push 0x22
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x7c], 6
je 0x10001828
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10014674
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
lea ecx, [esp + 0x74]
mov dword [esp + 0x110], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
or eax, 0xffffffff
jmp 0x10001934
push edi
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x74]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.libcurl.dll_curl_easy_init]
cmp eax, ebp
jne 0x10001850
mov edi, 2
jmp 0x10001863
push ebx
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.100080d0
mov edi, eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp edi, ebp
je 0x100018b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
push 0x1001468c
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0x10
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [esp + 0x74]
mov dword [esp + 0x110], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov eax, edi
jmp 0x10001934
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::close_void_]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
call fcn.10002640
add esp, 4
test al, al
jne 0x1000190e
push 0x100146c8
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 8
lea ecx, [esp + 0x74]
mov dword [esp + 0x110], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov eax, 0xfffffffe
jmp 0x10001934
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_rename]
add esp, 8
lea ecx, [esp + 0x74]
mov dword [esp + 0x110], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0x10