Function at 0x42a640
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2226
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4f840c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f840c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
push 0x4e2958
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0x4e0ba8
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR100.dll_strlen]
add esp, 4
push eax
push 0x4e0ba8
mov ecx, esi
call fcn.0040dda8
cmp dword [esp + 0x18], edi
je 0x42af61
xor eax, eax
push ebx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], ax
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
mov ecx, ebx
lea esi, [esp + 0x88]
call fcn.0040885a
mov dword [esp + 0xd0], edi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], cx
xor edx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], dl
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0xd8], 3
push ecx
mov dword [esp + 0x20], 0x3a
call fcn.0040d92d
cmp eax, 0xffffffff
je 0x42aa8e
push 1
lea edx, [esp + 0x18]
push edx
mov eax, esi
push eax
mov dword [esp + 0x20], 0x3a
call fcn.0040d92d
push eax
push edi
mov ecx, esi
push ecx
lea eax, [esp + 0xb0]
call fcn.004089b5
mov esi, eax
mov ebx, dword [sym.imp.MSVCR100.dll_memmove]
lea edx, [esp + 0x6c]
cmp edx, esi
je 0x42a812
cmp dword [esp + 0x80], 8
jb 0x42a7c2
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], cx
cmp dword [esi + 0x14], 8
jae 0x42a7f3
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x70]
push esi
push eax
call ebx
add esp, 0xc
jmp 0x42a7fb
mov ecx, dword [esi]
mov dword [esp + 0x6c], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x80], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0xd0], 3
cmp dword [esp + 0xb8], 8
jb 0x42a835
mov ecx, dword [esp + 0xa4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x20], 0x3a
call fcn.0040d92d
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x90]
push ecx
lea eax, [esp + 0xb0]
call fcn.004089b5
mov esi, eax
lea edx, [esp + 0x50]
cmp edx, esi
je 0x42a8d2
cmp dword [esp + 0x64], 8
jb 0x42a888
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp dword [esi + 0x14], 8
jae 0x42a8b6
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x54]
push esi
push eax
call ebx
add esp, 0xc
jmp 0x42a8be
mov ecx, dword [esi]
mov dword [esp + 0x50], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x60], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0xd0], 3
cmp dword [esp + 0xb8], 8
jb 0x42a8f5
mov ecx, dword [esp + 0xa4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x42a904
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0xa8]
call fcn.0042a4d0
add esp, 4
mov esi, eax
lea edx, [esp + 0x34]
mov ebx, 0x10
cmp edx, esi
je 0x42a97f
cmp dword [esp + 0x48], ebx
jb 0x42a937
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esi + 0x14], ebx
jae 0x42a963
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x38]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x42a96b
mov edx, dword [esi]
mov dword [esp + 0x34], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0xd0], 3
cmp dword [esp + 0xb8], ebx
jb 0x42a9a1
mov edx, dword [esp + 0xa4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x42a9af
lea eax, [esp + 0x34]
cmp dword [esp + 0x80], 8
mov esi, dword [esp + 0x6c]
jae 0x42a9c1
lea esi, [esp + 0x6c]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x1c], eax
mov esi, eax
mov ebx, 8
cmp esi, edi
jne 0x42aac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x48], 0x10
jb 0x42aa12
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], ebx
jb 0x42aa37
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
cmp dword [esp + 0x80], ebx
jb 0x42aa62
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], dx
cmp dword [esp + 0x9c], ebx
jb 0x42af61
mov eax, dword [esp + 0x88]
push eax
jmp 0x42af58
mov eax, dword [esp + 0x10]
push edi
push str.http
call fcn.00424770
mov ecx, dword [esp + 0x20]
movzx eax, al
add esp, 4
neg eax
sbb eax, eax
and eax, 0xfffffe95
add eax, 0x1bb
push eax
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x42a9df
mov eax, dword [esp + 0x10]
push str.http
call fcn.00424770
mov edx, dword [esp + 0x2c]
add esp, 4
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0xff800000
add ecx, 0x800000
push ecx
push edi
push edi
push edi
push edx
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, edi
jne 0x42abb6
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp dword [esp + 0x48], 0x10
jb 0x42ab35
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], esi
jb 0x42ab5f
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
cmp dword [esp + 0x80], esi
jb 0x42ab8a
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], dx
cmp dword [esp + 0x9c], esi
jb 0x42af61
mov eax, dword [esp + 0x88]
push eax
jmp 0x42af58
mov eax, dword [esp + 0x10]
push str.https
call fcn.00424770
add esp, 4
test al, al
je 0x42abfe
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x1f
push ebx
mov dword [esp + 0x38], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [esp + 0x10], 0x3100
push 4
lea eax, [esp + 0x14]
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push str.Content_Type:application_x_www_form_urlencoed_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x20000000
push eax
push str.Content_Type:application_x_www_form_urlencoed_r_n
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x42acd0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
cmp dword [esp + 0x48], 0x10
jb 0x42ac4f
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], esi
jb 0x42ac79
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
cmp dword [esp + 0x80], esi
jb 0x42aca4
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], cx
cmp dword [esp + 0x9c], esi
jb 0x42af61
mov edx, dword [esp + 0x88]
push edx
jmp 0x42af58
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
push edi
push eax
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x42acf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ae0d
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x42ad2b
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x20], edi
jb 0x42ad0a
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x42ad2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ae0d
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x42ae0b
xor edi, edi
mov dword [esp + 0x24], edi
lea edx, [esp + 0x24]
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x42ae0d
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x42ae0b
lea edi, [eax + 1]
lea esi, [esp + 0xa4]
call fcn.004221a0
mov byte [esp + 0xd0], 7
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push ebx
mov dword [esp + 0x3c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x42adff
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
push eax
lea ebx, [esi + edx]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0042c450
xor edi, edi
add esp, 0xc
mov byte [esp + 0xd0], 3
cmp esi, edi
je 0x42add9
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
cmp dword [esp + 0x24], edi
jbe 0x42ae0b
xor edi, edi
jmp 0x42ad45
lea esi, [esp + 0xa4]
call fcn.004221f0
xor edi, edi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp dword [esp + 0x10], edi
je 0x42aecb
cmp dword [esp + 0x48], 0x10
jb 0x42ae43
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], esi
jb 0x42ae6d
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x42ae98
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], ax
cmp dword [esp + 0x9c], esi
jb 0x42aec4
mov ecx, dword [esp + 0x88]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x42af63
cmp dword [esp + 0x48], 0x10
jb 0x42aee0
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], esi
jb 0x42af0a
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x42af35
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], ax
cmp dword [esp + 0x9c], esi
jb 0x42af61
mov ecx, dword [esp + 0x88]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00485d44
mov esp, ebp
pop ebp
ret