Function at 0x60773d
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x6170e6
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x710544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov ebx, 0x80004005
push 9
mov dword [ebp + 0x24], esi
call fcn.005fece5
test eax, eax
jne 0x607bdd
push 0x2fd8
call fcn.004e2142
pop ecx
mov dword [ebp + 0x2c], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x6077a6
mov ecx, eax
call fcn.00602d00
jmp 0x6077a8
mov eax, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
push dword [ebp + 0x2c]
mov dword [ebp + 0x10], esi
push eax
mov dword [ebp + 0x14], esi
call fcn.004592e7
xor esi, esi
lea ecx, [ebp + 0x34]
inc esi
push 0x6b7054
mov dword [ebp - 4], esi
call fcn.0045290e
push 2
pop ecx
push 4
mov byte [ebp - 4], cl
mov edx, dword [edi + 0x24]
pop eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x38], eax
cmp edx, eax
jne 0x607a63
push 0x6b6ebc
lea ecx, [ebp + 8]
call fcn.0045290e
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
push dword [edi + 0x3c]
call fcn.0045290e
push 4
pop ecx
push esi
push eax
lea eax, [ebp + 0x38]
mov byte [ebp - 4], cl
push eax
call fcn.004526c6
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00452239
cmp dword [edi + 0x38], 0
je 0x607857
push dword [edi + 0x38]
lea ecx, [ebp + 0x2c]
call fcn.004528ca
mov dword [ebp + 0x30], eax
xor ecx, ecx
mov byte [ebp - 4], 8
inc ecx
mov dword [ebp + 0x28], ecx
jmp 0x607871
push 0x6b6f2c
lea ecx, [ebp + 0x20]
call fcn.0045290e
mov dword [ebp + 0x30], eax
push 2
mov dword [ebp - 4], 9
pop ecx
push dword [edi + 0x74]
mov dword [ebp + 0x24], ecx
push 0x724a0c
push ecx
mov esi, esp
mov dword [ebp + 4], esp
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.00452eea
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xa
mov esi, esp
mov dword [ebp + 0x18], esi
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x1c], esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00452eea
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp + 0x30], esi
mov eax, dword [ebp + 0x38]
add eax, 0xfffffff0
mov dword [ebp + 0x18], esp
push eax
call fcn.00452eea
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp + 0x30], esp
push dword [edi + 0x34]
call fcn.0045290e
mov byte [ebp - 4], 0xd
push dword [edi + 0x2c]
push ecx
mov ecx, esp
push dword [edi + 0x28]
call fcn.0045290e
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.005fef34
cmp eax, 7
mov eax, dword [ebp + 0x28]
sete byte [ebp + 0x3f]
test al, 2
je 0x607926
mov ecx, dword [ebp + 0x20]
and eax, 0xfffffffd
mov dword [ebp + 0x28], eax
lea ecx, [ecx - 0x10]
call fcn.00452239
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], 7
test al, 1
je 0x60793c
mov ecx, dword [ebp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00452239
cmp byte [ebp + 0x3f], 0
je 0x607a3d
push str.WinXP_::_File_download_Complete
call fcn.00609b90
pop ecx
push 0
push dword [edi + 0x3c]
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x607a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push esi
call fcn.005fa5d9
mov ecx, eax
call fcn.005fa4e2
push esi
push str.WinXP_:_could_nt_copy_from_.tmp_file__errorcode______d
call fcn.00609c05
push str.copyfile_failed_so_trying_std_c_way
call fcn.00609c05
push dword [ebp + 0x38]
lea ecx, [ebp - 0x174]
call fcn.00458edf
sub esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xbc]
push dword [edi + 0x3c]
call fcn.00458de7
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x6079f2
cmp dword [ebp - 0x6c], 0
je 0x6079e3
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00458f6d
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x6079f2
lea ecx, [ebp - 0x174]
call fcn.00458e76
cmp dword [ebp - 0x6c], 0
je 0x607a03
lea ecx, [ebp - 0xbc]
call fcn.00455972
lea ecx, [ebp - 0xbc]
call fcn.004556f6
lea ecx, [ebp - 0x174]
call fcn.00458d9b
jmp 0x607a53
push dword [edi + 0x3c]
push dword [edi + 0x28]
push dword [edi + 0x34]
push str.WinXP_:_Successfully_downloaded_the_file__s_from_the_server__s_to_the_destination_file__s
call fcn.00609c05
push dword [ebp + 0x38]
call fcn.00517a29
add esp, 0x14
xor ebx, ebx
jmp 0x607a53
push dword [ebp + 0x34]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push str.WinXP_::_DownLoadFileCustom_failed_to_download_file__Server__s__server_port__d___request_type__s
call fcn.00609b90
add esp, 0x10
mov ecx, dword [ebp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.00452239
jmp 0x607bb6
cmp edx, ecx
jne 0x607a70
push 3
push 0x6b70d4
jmp 0x607a9a
cmp edx, esi
je 0x607a94
cmp edx, 6
je 0x607a94
cmp edx, 3
jne 0x607a86
push eax
push 0x6b70dc
jmp 0x607a9a
cmp edx, 7
jne 0x607aa2
push 3
push 0x6b75c4
jmp 0x607a9a
push eax
push 0x6b6fec
lea ecx, [ebp + 0x34]
call fcn.00452fb2
cmp dword [edi + 0x38], 0
je 0x607abf
push dword [edi + 0x38]
lea ecx, [ebp + 0x20]
call fcn.004528ca
mov dword [ebp + 0x30], eax
push 4
mov byte [ebp - 4], 0x10
pop ecx
jmp 0x607adc
push 0x6b705c
lea ecx, [ebp + 0x2c]
call fcn.0045290e
mov dword [ebp + 0x30], eax
push 8
pop ecx
mov dword [ebp - 4], 0x11
mov dword [ebp + 0x38], ecx
push 0x724a0c
push ecx
mov esi, esp
mov dword [ebp], esp
mov dword [ebp + 0x18], esi
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
mov dword [ebp + 0x24], ecx
push eax
call fcn.00452eea
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0x12
mov esi, esp
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x18], esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00452eea
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp + 0x1c], esp
push dword [edi + 0x34]
call fcn.0045290e
mov byte [ebp - 4], 0x14
push dword [edi + 0x2c]
push ecx
mov ecx, esp
push dword [edi + 0x28]
call fcn.0045290e
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.005ffa21
cmp eax, 7
mov eax, dword [ebp + 0x38]
sete byte [ebp + 0x3f]
test al, 8
je 0x607b73
mov ecx, dword [ebp + 0x2c]
and eax, 0xfffffff7
mov dword [ebp + 0x38], eax
lea ecx, [ecx - 0x10]
call fcn.00452239
mov eax, dword [ebp + 0x38]
push 2
pop ecx
mov dword [ebp - 4], ecx
test al, 4
je 0x607b88
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.00452239
cmp byte [ebp + 0x3f], 0
je 0x607ba0
push dword [esi + 0xc0]
lea ecx, [edi + 0xc]
call fcn.00452acb
xor ebx, ebx
jmp 0x607bb6
push dword [ebp + 0x34]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push str.WinXP_::_HttpSendRequestCustom_failed__Server__s__server_port__d___request_type__s
call fcn.00609b90
add esp, 0x10
mov ecx, dword [ebp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x607cc7
call fcn.004541e2
jmp 0x607cc7
cmp dword [edi], esi
je 0x607be8
mov dword [edi + 0x24], 1
mov ecx, edi
call fcn.0060760c
test eax, eax
je 0x607c0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 2
push ebx
call fcn.005fa5d9
mov ecx, eax
call fcn.005fa4e2
jmp 0x607cc0
mov ecx, edi
call fcn.0060753d
test eax, eax
jne 0x607bf3
mov ecx, edi
call fcn.00607165
test eax, eax
jne 0x607bf3
mov ecx, edi
call fcn.00606fcb
mov ebx, eax
mov eax, 0xc8
cmp ebx, 0x2f76
jne 0x607c44
cmp dword [edi + 8], eax
jne 0x607bf3
mov ebx, esi
jmp 0x607c48
test ebx, ebx
jne 0x607bf3
cmp dword [edi + 8], eax
jne 0x607cc0
cmp dword [edi + 0x4c], esi
jbe 0x607c9e
cmp dword [edi], esi
je 0x607c5d
mov dword [edi + 0x24], 4
mov ecx, edi
call fcn.00606ae9
test eax, eax
je 0x607cbe
push str.HttpReadResponseData_with_windows_functions_failed
call fcn.00609c05
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.trying_HttpReadResponseData_with_std_c_functions
mov ebx, eax
call fcn.00609c05
pop ecx
mov ecx, edi
call fcn.00606630
test eax, eax
je 0x607cc0
push str.HttpReadResponseData_failed_even_with_std_c_function
call fcn.00609c05
pop ecx
jmp 0x607cc0
mov ecx, edi
call fcn.006063f0
test eax, eax
je 0x607cbe
push 0x6bace0
call fcn.00609c05
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x607cc0
mov ebx, esi
mov ecx, edi
call fcn.0060632f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x40
leave
ret