Function at 0x401ce0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e91
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x434280]
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 dword [ebp - 4], 1
mov byte [ebp - 0x99], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 2
push 0
push 0
push 0
push 0
push str.StatisticsEx_2.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x401d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401d86
movzx eax, ax
or eax, 0x80070000
push eax
push 0x40
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
push 0
push 0x50
push dword [ebp + 8]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x401dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401dc4
movzx eax, ax
or eax, 0x80070000
push eax
push 0x44
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0x42cc80
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xb0], esi
test esi, esi
jne 0x401e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401e0b
movzx eax, ax
or eax, 0x80070000
push eax
push 0x48
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401e46
movzx eax, ax
or eax, 0x80070000
push eax
push 0x4b
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x401e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401e77
movzx eax, ax
or eax, 0x80070000
push eax
push 0x4e
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401ead
movzx eax, ax
or eax, 0x80070000
push eax
push 0x51
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
cmp dword [ebp - 0xa4], 0
jne 0x401ede
push str.dwSize_is_0
push 0x54
push str.TryWinHTTP
push str.stat_sender.cpp
call fcn.00404f30
lea ecx, [ebp - 0xa0]
call fcn.004028d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xa4]
push eax
inc eax
push eax
lea ecx, [ebp - 0xa0]
call fcn.004029b0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401f26
movzx eax, ax
or eax, 0x80070000
push eax
push 0x58
mov edx, str.TryWinHTTP
mov ecx, str.stat_sender.cpp
call fcn.00404e60
mov eax, dword [ebp - 0xa0]
cmp dword [eax - 0xc], 0
jl 0x401f7c
push str._page__nok_n__page_
push eax
call fcn.0040b5ef
add esp, 8
test eax, eax
je 0x401f7c
sub eax, dword [ebp - 0xa0]
cmp eax, 0xffffffff
je 0x401f7c
mov byte [ebp - 0x99], 1
push str.TryWinHTTP_had_success
push 0x5e
push str.TryWinHTTP
call fcn.00409310
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00402950
mov dword [ebp - 4], 1
jmp 0x40201e
test esi, esi
je 0x40202d
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x402033
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x40203a
push ebx
call esi
test edi, edi
je 0x402041
push edi
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402950
mov al, byte [ebp - 0x99]
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.0040b29c
mov esp, ebp
pop ebp
ret