Function at 0x4c3d10
Capabilities:
Check http status code
Get http content length
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f588
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x38]
push 0
push 3
push dword [ebp + 0x24]
mov dword [eax], 0
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 8]
call fcn.004c4770
test eax, eax
jne 0x4c4659
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov dword [edi + 8], eax
mov dword [ebp - 0x44], 0x58f5c0
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0x30]
shl eax, 0x17
add eax, 0x8440c000
mov dword [ebp - 0x4c], 0x58f494
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], 0
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040be70
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4c3dce
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418250
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov edi, dword [edi + 8]
push dword [eax + 0x68]
mov dword [eax + 0x34], 6
mov byte [eax + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x4c]
push eax
push 0x57e030
push str.HTTP_1.0
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x4c3e1f
mov ecx, edi
call fcn.004c47e0
mov dword [ebp + 0x18], eax
test eax, eax
je 0x4c3e2b
jmp 0x4c3e37
push dword [edi + 0x68]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 4], 0
jne 0x4c3e3f
mov eax, dword [edi + 0x2c]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4c4612
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x5c], 0x58f5c8
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], 0x58f624
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 5
cmp byte [ebp + 0x30], 0
je 0x4c3eac
cmp byte [esi + 0x94], 0
je 0x4c3eac
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push eax
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push dword [ebp + 0x18]
or dword [ebp + 0x30], 0x3380
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c466c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 7
mov edi, dword [ebp + 0x34]
cmp dword [edi], 0
jbe 0x4c3f25
lea ecx, [ebp + 0x30]
call fcn.00413410
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push dword [edi]
push str.Range:_bytes_u__r_n
push eax
call fcn.00419120
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x14]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00418250
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp + 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3f28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c3f28
or edi, 0xffffffff
cmp word [esi + 0x42], 0
lea edx, [esi + 0x42]
jbe 0x4c3fa9
lea ecx, [ebp + 0x18]
call fcn.00492c90
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x30]
call fcn.00413410
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x30]
push dword [ebp + 0x18]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.00419120
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x14]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00418250
mov byte [ebp - 4], 0xa
mov eax, edi
mov edx, dword [ebp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3f8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3fa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c4676
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 0x30], edi
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x4c4098
push 0x40
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x14]
call fcn.00418250
mov edi, dword [esi + 0x8c]
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x24], edi
call fcn.0047da80
test edi, edi
je 0x4c4078
cmp word [edi], 0
je 0x4c4078
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, eax
mov dword [ebp + 0x18], edx
test edx, edx
jle 0x4c4078
mov edi, dword [ebp + 0x30]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4c4055
push edx
lea ecx, [ebp + 0x30]
call fcn.0047dc00
mov edi, dword [ebp + 0x30]
mov edx, dword [ebp + 0x18]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push dword [ebp + 0x24]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
lea ecx, [ebp + 0x30]
call fcn.00492de0
jmp 0x4c407b
mov edi, dword [ebp + 0x30]
cmp dword [edi - 4], 1
jle 0x4c408f
push dword [edi - 0xc]
lea ecx, [ebp + 0x30]
call fcn.0047dd50
mov edi, dword [ebp + 0x30]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4c40a3
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov esi, dword [esi + 4]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x10]
cmove ecx, edx
mov dword [ebp - 0x30], ecx
push dword [eax + 0x68]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], dl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4c40f9
mov ecx, esi
call fcn.004c47e0
mov dword [ebp + 0x18], eax
test eax, eax
je 0x4c4102
jmp 0x4c4117
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x30], 0
je 0x4c4111
mov dword [ebp + 0x18], 0
jmp 0x4c4117
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x18], eax
push 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x98], 0
push ecx
lea eax, [esi + 0x98]
mov dword [ebp - 0x28], 4
push eax
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4c45be
push 0
lea eax, [ebp - 0x28]
mov dword [ebp + 0x20], 0
push eax
lea eax, [ebp + 0x20]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, eax
lea edx, [esi + 0x98]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x20]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x20], ecx
je 0x4c41bd
cmp dword [edx], 0x130
je 0x4c41bd
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10
push ecx
lea eax, [esi + 0x52]
push eax
push 0x4000000b
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp + 0x20]
lea edx, [esi + 0x98]
test eax, eax
jne 0x4c41bd
xorps xmm0, xmm0
movups xmmword [esi + 0x52], xmm0
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x4c4291
cmp dword [edx], 0xc8
jne 0x4c4291
mov dword [ebp + 0x24], 0
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x24]
push 0x410
call fcn.004b2f10
mov esi, dword [ebp + 0x24]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
mov dword [ebp + 8], 0x410
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4c425e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c44df
push esi
call fcn.00521576
add esp, 4
mov dword [ebp + 0x24], 0
lea ecx, [ebp + 0x24]
push dword [ebp + 8]
call fcn.004b2f10
mov esi, dword [ebp + 0x24]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4c44d9
mov edx, dword [ebp + 8]
test edx, edx
je 0x4c4277
mov ecx, dword [ebp - 0x10]
shr edx, 1
push edx
push esi
lea ecx, [ecx + 0x90]
call fcn.00418250
mov byte [ebp - 4], 0xf
push esi
call fcn.00521576
mov ecx, dword [ebp + 0x20]
add esp, 4
mov esi, dword [ebp - 0x10]
mov dword [ebp + 0x24], 0
mov eax, dword [esi + 0x98]
add eax, 0xffffff38
cmp eax, 0xd2
ja case.0x4c42aa.201
movzx eax, byte [eax + 0x4c469c]
jmp dword [eax*4 + 0x4c4680]
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x18]
test ecx, ecx
jne 0x4c42c4
mov dword [eax], ecx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x4c4308
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x4c4308
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x4c42e3
cmp dword [eax], ecx
jae 0x4c44fb
mov edx, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x4c4308
mov dword [ebp + 0x18], 0xe0000012
jmp 0x4c4344
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x4c4308
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
cmp edx, 0x2f0d
je 0x4c445a
cmp edx, 0x2f0c
je 0x4c445a
cmp edx, 0x2f06
je 0x4c445a
cmp edx, 0x2f05
je 0x4c445a
cmp edx, 0xe0000012
jne 0x4c45a8
lea ecx, [ebp + 0x28]
call fcn.00413410
mov byte [ebp - 4], 0x2c
lea eax, [ebp + 0x28]
push eax
push dword [esi + 0x98]
push dword [esi + 4]
call fcn.004c50a0
mov esi, dword [esi + 0x98]
lea ecx, [ebp + 0x1c]
cmp esi, 0x197
sete byte [ebp - 0x34]
call fcn.00413410
mov byte [ebp - 4], 0x2d
cmp esi, 0x197
mov esi, dword [ebp - 0x10]
jne 0x4c4395
lea eax, [ebp + 0x1c]
push eax
push dword [esi + 4]
call fcn.004c5390
lea ecx, [ebp - 0x18]
call fcn.00413410
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x14]
call fcn.00413410
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.004c5230
test al, al
je 0x4c452b
mov byte [ebp - 4], 0x2e
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c43f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
or eax, 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4432
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov edx, dword [ebp + 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c40a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c40a3
cmp byte [esi + 0x81], 0
je 0x4c44a9
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x38], eax
push ecx
push 0x1f
push eax
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4c44a1
or dword [ebp + 0x10], 0x3f05
lea eax, [ebp + 0x10]
push 4
push eax
push 0x1f
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x4c44cc
mov eax, dword [ebp + 0x18]
jmp 0x4c45c4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4c44c2
push dword [esi + 4]
mov eax, dword [ecx]
push edx
push 0
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [ebp + 0x18]
jmp 0x4c44c4
mov eax, edx
test eax, eax
jne 0x4c45b9
lea ecx, [ebp + 0x14]
call fcn.00414110
jmp 0x4c40a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0xf
push esi
call fcn.00521576
add esp, 4
mov dword [ebp + 0x24], 0
jmp 0x4c45c7
mov dword [ebp + 0x18], 0xe0000010
jmp 0x4c45c7
mov dword [ebp + 0x18], 0xe0000013
jmp 0x4c45c7
mov dword [ebp + 0x18], 0xe0000016
jmp 0x4c45c7
mov dword [ebp + 0x18], 0xe0000018
jmp 0x4c45c7
mov byte [ebp - 4], 0x2e
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c454c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c456a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
mov eax, esi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4588
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, esi
mov edx, dword [ebp + 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c45c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c45c7
test edx, edx
jne 0x4c45c7
xor eax, eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], eax
jmp 0x4c45c7
mov dword [ebp + 0x18], edx
jmp 0x4c45c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 7
or esi, 0xffffffff
add edi, 0xfffffff0
mov ecx, esi
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4c45e5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4603
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004c11c0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c462e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
push 0
push esi
mov dword [ebp - 0x44], 0x58f5c0
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
iretd