Function at 0x67e1bf
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x6a1980
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x79b544]
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.00673d92
test eax, eax
jne 0x67e65f
push 0x2fd8
call fcn.00474bfc
pop ecx
mov dword [ebp + 0x2c], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x67e228
mov ecx, eax
call fcn.006764f4
jmp 0x67e22a
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.0045b426
xor esi, esi
lea ecx, [ebp + 0x34]
inc esi
push 0x763ce8
mov dword [ebp - 4], esi
call fcn.004514db
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 0x67e4e5
push str..tmp
lea ecx, [ebp + 8]
call fcn.004514db
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
push dword [edi + 0x3c]
call fcn.004514db
push 4
pop ecx
push esi
push eax
lea eax, [ebp + 0x38]
mov byte [ebp - 4], cl
push eax
call fcn.004512d9
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
cmp dword [edi + 0x38], 0
je 0x67e2d9
push dword [edi + 0x38]
lea ecx, [ebp + 0x2c]
call fcn.00451497
mov dword [ebp + 0x30], eax
xor ecx, ecx
mov byte [ebp - 4], 8
inc ecx
mov dword [ebp + 0x28], ecx
jmp 0x67e2f3
push 0x750660
lea ecx, [ebp + 0x20]
call fcn.004514db
mov dword [ebp + 0x30], eax
push 2
mov dword [ebp - 4], 9
pop ecx
push dword [edi + 0x74]
mov dword [ebp + 0x24], ecx
push 0x7af0f8
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.0045207b
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.0045207b
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.0045207b
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.004514db
mov byte [ebp - 4], 0xd
push dword [edi + 0x2c]
push ecx
mov ecx, esp
push dword [edi + 0x28]
call fcn.004514db
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.00674046
cmp eax, 7
mov eax, dword [ebp + 0x28]
sete byte [ebp + 0x3f]
test al, 2
je 0x67e3a8
mov ecx, dword [ebp + 0x20]
and eax, 0xfffffffd
mov dword [ebp + 0x28], eax
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], 7
test al, 1
je 0x67e3be
mov ecx, dword [ebp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
cmp byte [ebp + 0x3f], 0
je 0x67e4bf
push str.WinXP_::_File_download_Complete
call fcn.00677869
pop ecx
push 0
push dword [edi + 0x3c]
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x67e49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push esi
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
push esi
push str.WinXP_:_could_nt_copy_from_.tmp_file__errorcode______d
call fcn.006778de
push str.copyfile_failed_so_trying_std_c_way
call fcn.006778de
push dword [ebp + 0x38]
lea ecx, [ebp - 0x174]
call fcn.0045b07a
sub esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xbc]
push dword [edi + 0x3c]
call fcn.0045af6a
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x67e474
cmp dword [ebp - 0x6c], 0
je 0x67e465
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0045b114
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x67e474
lea ecx, [ebp - 0x174]
call fcn.0045b005
cmp dword [ebp - 0x6c], 0
je 0x67e485
lea ecx, [ebp - 0xbc]
call fcn.00457e8b
lea ecx, [ebp - 0xbc]
call fcn.00457cf4
lea ecx, [ebp - 0x174]
call fcn.0045af1e
jmp 0x67e4d5
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.006778de
push dword [ebp + 0x38]
call fcn.005120b1
add esp, 0x14
xor ebx, ebx
jmp 0x67e4d5
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.00677869
add esp, 0x10
mov ecx, dword [ebp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
jmp 0x67e638
cmp edx, ecx
jne 0x67e4f2
push 3
push 0x763ce8
jmp 0x67e51c
cmp edx, esi
je 0x67e516
cmp edx, 6
je 0x67e516
cmp edx, 3
jne 0x67e508
push eax
push 0x76395c
jmp 0x67e51c
cmp edx, 7
jne 0x67e524
push 3
push 0x764068
jmp 0x67e51c
push eax
push 0x769478
lea ecx, [ebp + 0x34]
call fcn.00452145
cmp dword [edi + 0x38], 0
je 0x67e541
push dword [edi + 0x38]
lea ecx, [ebp + 0x20]
call fcn.00451497
mov dword [ebp + 0x30], eax
push 4
mov byte [ebp - 4], 0x10
pop ecx
jmp 0x67e55e
push 0x750660
lea ecx, [ebp + 0x2c]
call fcn.004514db
mov dword [ebp + 0x30], eax
push 8
pop ecx
mov dword [ebp - 4], 0x11
mov dword [ebp + 0x38], ecx
push 0x7af0f8
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.0045207b
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.0045207b
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.004514db
mov byte [ebp - 4], 0x14
push dword [edi + 0x2c]
push ecx
mov ecx, esp
push dword [edi + 0x28]
call fcn.004514db
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00674b21
cmp eax, 7
mov eax, dword [ebp + 0x38]
sete byte [ebp + 0x3f]
test al, 8
je 0x67e5f5
mov ecx, dword [ebp + 0x2c]
and eax, 0xfffffff7
mov dword [ebp + 0x38], eax
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, dword [ebp + 0x38]
push 2
pop ecx
mov dword [ebp - 4], ecx
test al, 4
je 0x67e60a
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
cmp byte [ebp + 0x3f], 0
je 0x67e622
push dword [esi + 0xc0]
lea ecx, [edi + 0xc]
call fcn.004511f0
xor ebx, ebx
jmp 0x67e638
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.00677869
add esp, 0x10
mov ecx, dword [ebp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x67e749
call fcn.0044f344
jmp 0x67e749
cmp dword [edi], esi
je 0x67e66a
mov dword [edi + 0x24], 1
mov ecx, edi
call fcn.0067e08e
test eax, eax
je 0x67e691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 2
push ebx
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
jmp 0x67e742
mov ecx, edi
call fcn.0067dfbf
test eax, eax
jne 0x67e675
mov ecx, edi
call fcn.0067dc08
test eax, eax
jne 0x67e675
mov ecx, edi
call fcn.0067da6e
mov ebx, eax
mov eax, 0xc8
cmp ebx, 0x2f76
jne 0x67e6c6
cmp dword [edi + 8], eax
jne 0x67e675
mov ebx, esi
jmp 0x67e6ca
test ebx, ebx
jne 0x67e675
cmp dword [edi + 8], eax
jne 0x67e742
cmp dword [edi + 0x4c], esi
jbe 0x67e720
cmp dword [edi], esi
je 0x67e6df
mov dword [edi + 0x24], 4
mov ecx, edi
call fcn.0067d626
test eax, eax
je 0x67e740
push str.HttpReadResponseData_with_windows_functions_failed
call fcn.006778de
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.trying_HttpReadResponseData_with_std_c_functions
mov ebx, eax
call fcn.006778de
pop ecx
mov ecx, edi
call fcn.0067d1ce
test eax, eax
je 0x67e742
push str.HttpReadResponseData_failed_even_with_std_c_function
call fcn.006778de
pop ecx
jmp 0x67e742
mov ecx, edi
call fcn.0067d013
test eax, eax
je 0x67e740
push str.HttpReadResponseData_with_windows_functions_failed
call fcn.006778de
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x67e742
mov ebx, esi
mov ecx, edi
call fcn.0067cf52
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