Function at 0x4053c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49317b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4c100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x38]
mov dword [ebp - 0xdc], eax
push 0x4b05a4
lea edx, [ebp + 0x20]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xf4]
call fcn.00405c80
sub esp, 0x14
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebp + 8]
xor edi, edi
mov esi, 0xfffffc19
mov dword [ebp - 0x128], edi
push 0xffffffffffffffff
push edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push eax
mov byte [ecx], 0
call fcn.00404960
call fcn.004058d0
xorps xmm1, xmm1
movsd qword [0x4c11d8], xmm0
comisd xmm1, xmm0
ja 0x40568f
call fcn.0043a520
mov edi, eax
test edi, edi
je 0x40568f
cmp dword [ebp - 0xe0], 0x10
lea ecx, [ebp - 0xf4]
push 0x4b05ac
cmovae ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0x128], 0
je 0x4056ad
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x2712
push edi
call fcn.0043a640
push 1
push 0x34
push edi
mov esi, eax
call fcn.0043a640
push 0x405790
push 0x4e2b
push edi
call fcn.0043a640
push dword [ebp - 0x128]
or esi, eax
push 0x2711
push edi
call fcn.0043a640
push 0
or esi, eax
mov dword [ebp - 0x134], ebx
mov eax, dword [ebp - 0xdc]
push 0x2b
push edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], eax
call fcn.0043a640
push 0x4057c0
push 0x4efb
push edi
or esi, eax
call fcn.0043a640
add esp, 0x48
or esi, eax
lea eax, [ebp - 0x134]
push eax
push 0x2749
push edi
call fcn.0043a640
push 1
push 0x2d
push edi
or esi, eax
call fcn.0043a640
push 0xa
push 0x4e
push edi
or esi, eax
call fcn.0043a640
add esp, 0x24
mov dword [ebp - 0x138], 0xf
or esi, eax
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 0x14c], 0
lea ecx, [ebp - 0x14c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00404960
cmp dword [ebp - 0x138], 0x10
lea ecx, [ebp - 0x124]
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ebx, ebx
jne 0x4055bb
mov ebx, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x4055d3
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00404b60
mov eax, ebx
cdq
mov dword [0x4c11e0], eax
mov dword [0x4c11e4], edx
test edx, edx
jl 0x4055fd
jg 0x4055eb
test eax, eax
je 0x4055fd
push edx
push eax
push 0x75a4
push edi
call fcn.0043a640
add esp, 0x10
or esi, eax
test esi, esi
je 0x40560b
mov esi, 0xfffffc19
jmp 0x40568f
push edi
call fcn.0043a5b0
mov esi, eax
add esp, 4
test esi, esi
je 0x40568f
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
call fcn.0043b100
push eax
push esi
push str.error:_d:_s
lea eax, [ebp - 0x74]
push 0x64
push eax
call fcn.004053a0
add esp, 0x24
cmp esi, 0x16
jne 0x40568f
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0
push eax
push 0x200002
push edi
call fcn.0043a500
push 0x64
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0xdc]
lea eax, [ebp - 0xd8]
push str.HTTP_error_code:_d
push 0x64
push eax
call fcn.004053a0
add esp, 0x28
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4056ad
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 0x128], 0
push edi
call fcn.0043a4e0
add esp, 4
test esi, esi
jne 0x4056f6
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
lea eax, [ebp - 0xf4]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp - 0xe0], 0x10
push ecx
cmovae eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 0xc
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x405714
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.00404b60
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
cmp eax, 0x10
jb 0x405744
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00404b60
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x40576b
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00404b60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439578
mov esp, ebp
pop ebp
ret 0x38