Function at 0x4039a0
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fba0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x417014]
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 dword [ebp - 0x424], ecx
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
push str.UrlTest
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
je 0x403bf0
push esi
push 0x4000000
push esi
push esi
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x403be9
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
nop dword [eax + eax]
lea eax, [ebp - 0x420]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call esi
cmp dword [ebp - 0x420], 0
jne 0x403a20
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x414]
push 0x411c28
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp + 0xc], 0
jne 0x403bd1
push 0x7d
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
je 0x403bd1
push 0xd
add eax, 0xfffffff1
lea ecx, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoll]
add esp, 4
push 0
push 0x3e8
push edx
push eax
call fcn.0040f5f0
mov esi, eax
lea ecx, [ebp - 0x42c]
lea eax, [ebp - 0x440]
mov dword [ebp - 0x42c], esi
mov edi, edx
push eax
mov dword [ebp - 0x428], edi
call fcn.00403910
add esp, 4
lea ecx, [ebp - 0x41c]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x424]
movups xmmword [eax], xmm0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ecx, dword [ebp - 0x424]
mov byte [ebp - 4], 3
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 6]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x41c]
push str._d__02d__02d__02d:_02d:_02d_n
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
add esp, 0x20
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esi, 0x7080
lea eax, [ebp - 0x440]
push eax
sbb edi, 0
mov dword [ebp - 0x42c], esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x428], edi
call fcn.00403910
add esp, 4
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x424]
push eax
movups xmmword [eax], xmm0
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edi, dword [ebp - 0x430]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x414]
mov esi, 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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.0040e8e5
mov esp, ebp
pop ebp
ret