Function at 0x1000d620
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032f32
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10048034]
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 esi, edx
mov dword [ebp - 0x84], esi
mov ebx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], 0
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], 0
je 0x1000db13
cmp dword [ebx + 0x14], 8
jb 0x1000d684
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d687
sub ecx, edx
sar ecx, 1
cmp ecx, 9
jb 0x1000db13
push 7
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.1000b290
mov edx, eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.10012110
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x1000d6d5
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 8
push str.https:__
push dword [ebp - 0x54]
xor eax, eax
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.10006530
test eax, eax
push str..tmp
mov edx, esi
lea ecx, [ebp - 0x4c]
sete bl
call fcn.1000b650
add esp, 4
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 4
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Cleanup::constructor_void_]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Easy::constructor_void_]
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.10011b70
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x1000d760
mov eax, dword [eax]
push 0x1003f458
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR110.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0x98], 0x10
jb 0x1000d78b
push dword [ebp - 0xac]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x68], 0
jne 0x1000d7bd
push str.create_file_fail
lea ecx, [ebp - 0x94]
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::RuntimeError::constructor_char_const__]
push 0x10042bc4
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 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 0x1000d8a7
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1000d7f8
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x74], 0x1bb
call fcn.1000fed0
jmp 0x1000d7fa
xor eax, eax
mov byte [ebp - 4], 6
mov edi, dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::setOpt_class_curlpp::OptionBase__]
push eax
lea ecx, [ebp - 0x2c]
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1000d82c
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10010160
jmp 0x1000d82e
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x1000d865
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x74], 0
call fcn.100102a0
jmp 0x1000d867
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1000d89f
lea ecx, [ebp - 0x69]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov byte [ebp - 0x69], 0
call fcn.10010490
mov byte [ebp - 4], 6
jmp 0x1000d8de
xor eax, eax
mov byte [ebp - 4], 6
jmp 0x1000d8de
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1000d8d2
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov dword [ebp - 0x74], 0x50
call fcn.1000fed0
jmp 0x1000d8d4
xor eax, eax
mov byte [ebp - 4], 6
mov edi, dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::setOpt_class_curlpp::OptionBase__]
push eax
lea ecx, [ebp - 0x2c]
call edi
push 0xc
call ebx
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1000d929
mov edx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xac]
mov dword [esi + 8], 0
call fcn.10011b70
add esp, 4
mov byte [ebp - 4], 0xd
push eax
mov ecx, esi
mov dword [ebp - 0x80], 1
call fcn.1000f5f0
jmp 0x1000d92b
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xe
call edi
mov dword [ebp - 4], 6
test byte [ebp - 0x80], 1
je 0x1000d950
lea ecx, [ebp - 0xac]
call fcn.10001620
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1000d97a
lea ecx, [ebp - 0x69]
push ecx
mov ecx, eax
mov dword [eax + 8], 0
mov byte [ebp - 0x69], 1
call fcn.10010680
jmp 0x1000d97c
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x1000d9ab
mov dword [eax + 8], 0
push dword [ebp - 0x68]
mov ecx, eax
call fcn.10010900
jmp 0x1000d9ad
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call edi
push 0xc
call ebx
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1000d9de
push 0x1000cd70
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10010b70
jmp 0x1000d9e0
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Easy::perform_void_]
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0
push 0x200002
push dword [esi + 4]
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.curlpp.dll_void___cdecl_curlpp::libcurlRuntimeAssert_char_const___enum_CURLcode_]
add esp, 8
cmp dword [ebp - 0x34], 0x194
mov ecx, 1
mov eax, 0
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
call dword [sym.imp.curlpp.dll_public_virtual:_void___thiscall_curlpp::Easy::destructor_void_]
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 4
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::Cleanup::destructor_void_]
mov ebx, dword [ebp - 0x84]
jmp 0x1000da62
mov eax, dword [ebp - 0x68]
mov dword [0x1004a800], 0
test eax, eax
je 0x1000da89
push eax
call dword [sym.imp.MSVCR110.dll_fflush]
add esp, 4
push dword [ebp - 0x68]
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 4
cmp dword [ebp - 0x7c], 0
je 0x1000dac4
cmp dword [ebx + 0x14], 8
jb 0x1000da97
mov ebx, dword [ebx]
cmp dword [ebp - 0x38], 8
push 1
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000dad6
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x38], 8
jb 0x1000dae8
push dword [ebp - 0x4c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x1000db0e
push dword [ebp - 0x64]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x7c]
jmp 0x1000db15
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.1002f746
mov esp, ebp
pop ebp
ret