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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635e51
mov eax, dword fs:[0]
push eax
sub esp, 0xcd8
mov eax, dword [0x6c3afc]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push str.http_post_method
mov dword [ebp - 0xc84], eax
mov byte [ebp - 0xc79], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0xc9c], ebx
test ebx, ebx
jne 0x4c40fa
xor al, al
jmp 0x4c461d
push 0x38
lea ecx, [ebp - 0xce0]
push 0
push ecx
mov dword [ebp - 0xce4], 0x3c
call fcn.005de050
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.005de050
xor ecx, ecx
push 0xa26
push ecx
lea edx, [ebp - 0xc3e]
push edx
mov word [ebp - 0xc40], cx
call fcn.005de050
lea eax, [ebp - 0x218]
mov dword [ebp - 0xcd4], eax
lea ecx, [ebp - 0xc40]
mov eax, esi
add esp, 0x24
mov dword [ebp - 0xcd0], 0x104
mov dword [ebp - 0xcb8], ecx
mov dword [ebp - 0xcb4], 0x514
mov dword [ebp - 0xcdc], 1
lea edx, [eax + 2]
jmp 0x4c4190
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4190
sub eax, edx
lea edx, [ebp - 0xce4]
push edx
push 0
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4c41c0
mov byte [ebp - 0xc79], 0
jmp 0x4c4610
mov eax, dword [ebp - 0xcd4]
push 0
push 0x50
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xca0], eax
test eax, eax
je 0x4c41b4
mov ecx, dword [ebp - 0xcb8]
push 0
push 0
push 0
push 0
push ecx
push 0x64d934
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xc80], esi
call fcn.004f0cb9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4c4219
push 0x80004005
call fcn.00416160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc8c], eax
mov eax, edi
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4237
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xc8c]
push str.Content_Length:_d_r_nContent_Type:_application_x_www_form_urlencoded_r_n
push ecx
call fcn.004c3cc0
mov ebx, dword [ebp - 0xc8c]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0
push eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4c429b
mov byte [ebp - 0xc79], al
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c45e0
mov eax, edi
mov dword [ebp - 0xc98], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c42b0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
call fcn.004effa4
mov esi, eax
mov eax, edi
add esp, 4
mov dword [ebp - 0xc94], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c42e0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 1]
push edx
push edi
push esi
call fcn.005df683
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4303
lea ecx, [ebp - 0xc98]
push ecx
sub eax, edx
push eax
push esi
mov esi, dword [ebp - 0xc80]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4c4348
mov byte [ebp - 0xc79], al
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c45e0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4c4360
mov byte [ebp - 0xc79], al
jmp 0x4c45c9
push 0
lea ecx, [ebp - 0xc90]
push ecx
push 0
push 0
push 0x16
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4c43a6
lea eax, [ebx - 0x10]
mov byte [ebp - 0xc79], 0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c45e0
mov eax, dword [ebp - 0xc90]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004effa4
mov ecx, dword [ebp - 0xc80]
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0xc90]
push eax
push edi
push 0
push 0x16
push ecx
mov dword [ebp - 0xca4], edi
call esi
test eax, eax
jne 0x4c43fc
push edi
mov byte [ebp - 0xc79], al
call fcn.004effaf
add esp, 4
jmp 0x4c427f
mov edx, dword [ebp - 0xc80]
lea ecx, [ebp - 0xc88]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4c441f
mov byte [ebp - 0xc79], al
jmp 0x4c45c9
mov eax, dword [ebp - 0xc88]
test eax, eax
je 0x4c45b4
inc eax
push eax
call fcn.004effa4
mov ecx, dword [ebp - 0xc88]
inc ecx
push ecx
mov edi, eax
push 0
push edi
call fcn.005de050
mov eax, dword [ebp - 0xc88]
mov ecx, dword [ebp - 0xc80]
add esp, 0x10
lea edx, [ebp - 0xca8]
push edx
push eax
push edi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4c447d
push edi
mov byte [ebp - 0xc79], al
call fcn.004effaf
add esp, 4
jmp 0x4c427f
mov eax, edi
mov dword [ebp - 0xc48], 0xf
mov dword [ebp - 0xc4c], 0
mov byte [ebp - 0xc5c], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c44a0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0xc5c]
call fcn.00403c90
lea ecx, [ebp - 0xc5c]
push ecx
lea edx, [ebp - 0xc78]
push edx
mov byte [ebp - 4], 1
call fcn.00401150
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 0xc84]
cmp ecx, esi
je 0x4c453f
cmp dword [ecx + 0x14], 0x10
jb 0x4c44f3
mov eax, dword [ecx]
push eax
call fcn.004effaf
mov ecx, dword [ebp - 0xc84]
add esp, 4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp dword [esi + 0x14], 0x10
jae 0x4c4521
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push ecx
call fcn.005de430
mov ecx, dword [ebp - 0xc84]
add esp, 0xc
jmp 0x4c452b
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [esi], 0
mov edx, dword [esi + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0xc64], 0x10
jb 0x4c4557
mov ecx, dword [ebp - 0xc78]
push ecx
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0xc48], 0x10
mov dword [ebp - 0xc64], 0xf
mov dword [ebp - 0xc68], 0
mov byte [ebp - 0xc78], 0
jb 0x4c458a
mov edx, dword [ebp - 0xc5c]
push edx
call fcn.004effaf
add esp, 4
push edi
mov dword [ebp - 0xc48], 0xf
mov dword [ebp - 0xc4c], 0
mov byte [ebp - 0xc5c], 0
call fcn.004effaf
mov edi, dword [ebp - 0xca4]
add esp, 4
push edi
call fcn.004effaf
mov eax, dword [ebp - 0xc94]
push eax
call fcn.004effaf
add esp, 8
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c45ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc80]
test eax, eax
je 0x4c45fd
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0xca0]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, dword [ebp - 0xc9c]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp - 0xc79]
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.005dd8e2
mov esp, ebp
pop ebp
ret