Function at 0x402bf0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d9c
mov eax, dword fs:[0]
push eax
mov eax, 0x249c
call fcn.00428730
mov eax, dword [0x448090]
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 edi, edx
mov esi, ecx
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2498], eax
push esi
lea eax, [ebp - 0x2498]
push str.http:__event.zeobit.com_event.php_step_sprodID31
push eax
mov dword [ebp - 4], 0
call fcn.004025d0
mov eax, dword [0x448020]
add esp, 0xc
mov ecx, 0x448020
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2490], esi
mov byte [ebp - 4], 1
mov edi, dword [edi]
test edi, edi
je 0x402cbf
jmp 0x402c80
push 7
push str.__new__
lea ecx, [ebp - 0x2490]
call fcn.004032b0
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x402d3b
mov eax, dword [edi + 8]
mov edi, dword [edi]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2490]
push eax
call fcn.004032b0
test edi, edi
jne 0x402c80
mov esi, dword [ebp - 0x2490]
lea ecx, [ebp - 0x247c]
call fcn.00403e20
push 4
push dword [0x43b9d8]
mov eax, 0x50
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x247c]
push 0x21
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 4
call fcn.0042056b
push eax
call fcn.00403e80
add esp, 0x14
lea ecx, [ebp - 0x247c]
call fcn.00403e20
mov edi, dword [ebp - 0x2498]
push edi
lea ecx, [ebp - 0x247c]
call fcn.004038a0
test eax, eax
jne 0x402d45
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], al
lea ecx, [esi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x4030e3
push 0x80004005
call fcn.00402950
push 0
push 0
push 0
push 1
push str.StatReporter
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
or ebx, 0xffffffff
mov dword [ebp - 0x24a8], eax
test eax, eax
je 0x40309d
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x243a]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2494], eax
test eax, eax
je 0x40305c
xor eax, eax
cmp dword [ebp - 0x2c], 3
mov ecx, 0x800000
cmove eax, ecx
mov dword [ebp - 0x2480], eax
lea eax, [ebp - 0x2034]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00403130
lea ecx, [ebp - 0x1032]
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402dc0
sub ecx, edx
sar ecx, 1
je 0x402de3
lea eax, [ebp - 0x1032]
push eax
lea ecx, [ebp - 0x248c]
call fcn.004031e0
push dword [ebp - 0x2480]
push 0
push 0
push 0
push dword [ebp - 0x248c]
push str.POST
push dword [ebp - 0x2494]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x2480], eax
test eax, eax
je 0x402fec
mov ecx, dword [esi - 0xc]
push 0
lea ecx, [ecx*2 + 2]
push ecx
push ecx
push esi
push 0xffffffffffffffff
push str.Content_Type:_text_plain__charsetutf_16_r_n
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402fab
push 0
push dword [ebp - 0x2480]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x402fab
mov eax, dword [0x448020]
mov ecx, 0x448020
mov dword [ebp - 0x2488], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2484], eax
push 0
lea eax, [ebp - 0x2488]
push eax
push 0
push 0
push 0x13
push dword [ebp - 0x2480]
mov byte [ebp - 4], 3
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x402f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402f5e
push 0
lea eax, [ebp - 0x2488]
push eax
mov eax, dword [ebp - 0x2488]
shr eax, 1
push eax
lea ecx, [ebp - 0x2484]
call fcn.00402720
push eax
push 0
push 0x13
push dword [ebp - 0x2480]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x402f46
mov eax, dword [ebp - 0x2488]
shr eax, 1
push eax
lea ecx, [ebp - 0x2484]
call fcn.00402260
lea ecx, [ebp - 0x2484]
call fcn.00403230
test al, al
je 0x402f92
push str.server_status_code_int_200
push 3
push 3
push 0xa3
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x10
lea ecx, [ebp - 0x2484]
call fcn.00402930
push dword [ebp - 0x2480]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40301f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.failed_to_get_server_status_code__err___d
push 3
push 3
push 0xa9
jmp 0x402f74
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.failed_to_get_header_size__err___d
push 3
push 3
push 0xb0
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
lea ecx, [ebp - 0x2484]
call fcn.00402930
push dword [ebp - 0x2480]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40301f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_send_request_to_server__err___d
push 3
push 3
push 0xb7
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
push dword [ebp - 0x2480]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40301f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_request__err___d
push 3
push 3
push 0xc0
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
push dword [ebp - 0x2494]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x248c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40308f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24a8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4030d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_connect_to_http_session__err___d
push 3
push 3
push 0xca
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
push dword [ebp - 0x24a8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4030d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_http_session__err___d
push 3
push 3
push 0xd3
push str.CStatReporter::ReportEventW
push str...CommonCppStatReporter.cpp
lea ecx, [ebp - 0x24a4]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40310b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.0041fe49
mov esp, ebp
pop ebp
ret