Function at 0x10050670
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cc59
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x7c], 0
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], 0
je 0x10050b76
cmp dword [ebx + 0x14], 8
jb 0x100506d5
mov ecx, dword [ebx]
jmp 0x100506d7
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100506e0
sub ecx, edx
sar ecx, 1
cmp ecx, 9
jb 0x10050b76
push 8
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.10011440
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 0
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::strings::to_lower_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x10050731
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 8
push str.https:__
push dword [ebp - 0x50]
xor eax, eax
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.10010100
test eax, eax
push str..tmp
mov edx, esi
lea ecx, [ebp - 0x48]
sete bl
call fcn.10011cb0
add esp, 4
push 0
push 1
push 0x100ebf58
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x10050799
push 3
call dword [sym.imp.curlpp.dll_void___cdecl_curlpp::initialize_long_int_]
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Easy::constructor_void_]
push 0xfde9
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 5
call sym.iImportLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_elex::strings::ws2s_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100507d4
mov eax, dword [eax]
push 0x100b693c
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR110.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0x94], 0x10
jb 0x100507ff
push dword [ebp - 0xa8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x64], 0
jne 0x10050831
push str.create_file_fail
lea ecx, [ebp - 0x90]
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::RuntimeError::constructor_char_const__]
push 0x100bd754
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], vtable.curlpp::CreateFileError.0
call sub.MSVCR110.dll__CxxThrowException
test bl, bl
mov ebx, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
push 0xc
je 0x1005091b
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x1005086c
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x70], 0x1bb
call fcn.10053200
jmp 0x1005086e
xor eax, eax
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::setOpt_class_curlpp::OptionBase__]
push eax
lea ecx, [ebp - 0x28]
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x100508a0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10053520
jmp 0x100508a2
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x100508d9
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x70], 0
call fcn.10053660
jmp 0x100508db
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x10050913
lea ecx, [ebp - 0x65]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov byte [ebp - 0x65], 0
call fcn.10053850
mov byte [ebp - 4], 5
jmp 0x10050952
xor eax, eax
mov byte [ebp - 4], 5
jmp 0x10050952
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x10050946
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x70], 0x50
call fcn.10053200
jmp 0x10050948
xor eax, eax
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::setOpt_class_curlpp::OptionBase__]
push eax
lea ecx, [ebp - 0x28]
call edi
push 0xc
call ebx
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x1005099f
push 0xfde9
push dword [ebp - 0x80]
lea eax, [ebp - 0xa8]
push eax
mov dword [esi + 8], 0
call sym.iImportLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_elex::strings::ws2s_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_
add esp, 0xc
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
mov dword [ebp - 0x7c], 1
call fcn.10052960
jmp 0x100509a1
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xd
call edi
mov dword [ebp - 4], 5
test byte [ebp - 0x7c], 1
je 0x100509c6
lea ecx, [ebp - 0xa8]
call sym.iImportLib.dll_public:_void___thiscall_Json::PathArgument::destructor_void_
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x100509f0
lea ecx, [ebp - 0x65]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov byte [ebp - 0x65], 1
call fcn.10053c30
jmp 0x100509f2
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x10050a21
mov dword [eax + 8], 0
push dword [ebp - 0x64]
mov ecx, eax
call fcn.10053eb0
jmp 0x10050a23
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x10050a54
push 0x1004eed0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10054120
jmp 0x10050a56
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Easy::perform_void_]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0
push 0x200002
push dword [esi + 4]
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.curlpp.dll_void___cdecl_curlpp::libcurlRuntimeAssert_char_const___enum_CURLcode_]
add esp, 0x14
cmp dword [ebp - 0x30], 0x194
mov ecx, 1
mov eax, 0
cmovne eax, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
call dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::destructor_void_]
mov ebx, dword [ebp - 0x84]
jmp 0x10050ac8
mov eax, dword [ebp - 0x64]
mov dword [0x100e894c], 0
test eax, eax
je 0x10050aec
push eax
call dword [sym.imp.MSVCR110.dll_fflush]
push dword [ebp - 0x64]
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 8
cmp dword [ebp - 0x78], 0
je 0x10050b27
cmp dword [ebx + 0x14], 8
jb 0x10050afa
mov ebx, dword [ebx]
cmp dword [ebp - 0x34], 8
push 1
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10050b39
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], 8
jb 0x10050b4b
push dword [ebp - 0x48]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x4c], 8
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x10050b71
push dword [ebp - 0x60]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x78]
jmp 0x10050b78
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret