Function at 0x40272c
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push ebx
push 0x928398
mov edi, eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x50]
xor esi, esi
mov dword [eax], esi
cmp edi, esi
je 0x402756
mov dword [edi], ebx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x402760
mov dword [eax], esi
mov edi, 0x9b74b8
mov ebp, 0x80b130
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], esi
call fcn.004021ec
pop ecx
pop ecx
test al, al
je 0x402a01
push esi
push dword [esp + 0x20]
push 0x93c5f0
push dword [esp + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x4029fd
movzx ecx, byte [esp + 0x20]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
lea ecx, [esp + 0x34]
push ecx
push esi
push esi
push 0x9375f0
push 0x905130
push eax
mov dword [esp + 0x4c], 0x404484
mov dword [esp + 0x50], esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, esi
je 0x4029e9
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x18]
push eax
push 0x1f
push ebx
mov dword [esp + 0x24], 0x3100
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 0x3f
push ebx
mov dword [esp + 0x24], 2
call esi
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
lea eax, [ecx + eax - 1]
push eax
push ecx
push str.Range:_bytes_u__u_r_n
mov esi, 0x9b24b8
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push ebp
call esi
push eax
push ebp
call esi
push eax
movsx eax, byte [0x80b130]
neg eax
sbb eax, eax
and eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4028ce
push dword [esp + 0x3c]
push ebx
call fcn.004026b3
pop ecx
pop ecx
test al, al
je 0x4029d6
push 0
push ebp
mov byte [0x91915c], 1
call esi
push eax
push ebp
call esi
push eax
movsx eax, byte [0x80b130]
neg eax
sbb eax, eax
and eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4029d6
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4029d2
push 0
lea eax, [esp + 0x1c]
push eax
mov esi, 0x937460
push esi
push 0
push 5
push ebx
mov dword [esp + 0x30], 0x64
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40290e
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov esi, eax
jmp 0x402910
xor esi, esi
push ebx
call fcn.00402269
pop ecx
lea ecx, [eax - 0x12c]
mov dword [esp + 0x18], eax
mov dword [0x919158], eax
cmp ecx, 0x63
ja 0x402996
push 0
lea eax, [esp + 0x28]
push eax
push 0x932460
push 0
push 0x21
push ebx
mov dword [esp + 0x3c], 0x2800
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x402965
push dword [esp + 0x1c]
push dword [esp + 0x24]
push 0x93c5f0
call fcn.004023ad
add esp, 0xc
jmp 0x402967
xor eax, eax
test eax, eax
je 0x4029de
cmp dword [esp + 0x18], 0x12f
jne 0x402983
push eax
push 0x928398
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4029de
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x402992
mov dword [ecx], eax
push 0x10
jmp 0x4029d8
cmp eax, 0xce
jne 0x4029ce
cmp esi, dword [esp + 0x48]
jne 0x4029ca
push dword [esp + 0x44]
mov esi, dword [esp + 0x54]
push dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x58]
call fcn.00402452
mov ebx, dword [esp + 0x34]
add esp, 0xc
mov byte [esp + 0x13], al
jmp 0x4029de
push 0x11
jmp 0x4029d8
push 0xe
jmp 0x4029d8
push 3
jmp 0x4029d8
push 0xd
pop eax
call fcn.004019f4
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor esi, esi
jmp 0x4029f1
push 0xc
pop eax
call fcn.004019f4
push dword [esp + 0x2c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x402a09
push 0xb
jmp 0x402a03
push 0xa
pop eax
call fcn.004019f4
cmp dword [esp + 0x18], 0x12f
je 0x40276a
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret