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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x41b305
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b8b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x41b828
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
je 0x41b34e
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x38], 1
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0041723c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4e]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041aadc
test al, al
jne 0x41b3ab
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, dword [ebp - 0x14]
call fcn.00404b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
xor eax, eax
push ebp
push 0x41b811
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x4e], 0
je 0x41b3f2
push 0x800104
push 0
push 0
push 0x41b8c4
mov eax, dword [ebp - 0x18]
call fcn.00404b74
push eax
mov eax, dword [ebp - 8]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x2c], eax
jmp 0x41b41e
push 0x104
push 0
push 0
push 0x41b8c4
mov eax, dword [ebp - 0x18]
call fcn.00404b74
push eax
mov eax, dword [ebp - 8]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x41b7de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x2c]
call fcn.00417b74
test al, al
jne 0x41b466
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, 0x41b8dc
call fcn.00404a4c
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0041b9f8
mov byte [ebp - 0x4d], al
cmp byte [ebp - 0x4d], 0
jne 0x41b4b6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, 0x41b8f4
call fcn.00404b90
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
cmp dword [ebp + 0x10], 0
je 0x41b5eb
xor eax, eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x16
mov eax, dword [ebp - 0x2c]
push eax
call sub.Winhttp.dll_WinHttpQueryHeaders
mov eax, dword [ebp - 0x44]
inc eax
add eax, eax
call fcn.0040bbe0
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x41b58a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0x16
mov eax, dword [ebp - 0x2c]
push eax
call sub.Winhttp.dll_WinHttpQueryHeaders
test eax, eax
jne 0x41b55c
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x6c]
call fcn.0040c190
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x41b90c
call fcn.004046e8
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x30]
call fcn.00404b28
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b591
mov eax, dword [ebp - 0x30]
call fcn.00402a68
ret
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 8]
call fcn.00404664
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.0040b544
mov eax, dword [ebp - 0x74]
mov edx, 0x41b924
call fcn.004047e8
jne 0x41b62b
mov byte [ebp - 0xd], 1
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call fcn.00405c8c
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41b683
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x80]
call fcn.0040c190
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x41b934
call fcn.004046e8
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
xor eax, eax
push ebp
push 0x41b7ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.Winhttp.dll_WinHttpReadData
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x4d], al
cmp byte [ebp - 0x4d], 0
jne 0x41b710
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x88]
call fcn.0040c190
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 0x41b94c
call fcn.004046e8
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
cmp dword [ebp - 0x3c], 0
jbe 0x41b78e
cmp dword [ebp + 8], 0
je 0x41b731
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
cmp byte [ebp - 0x4d], 0
jne 0x41b691
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x90]
call fcn.0040c190
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x41b968
call fcn.004046e8
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b868
cmp dword [ebp - 0x3c], 0
jne 0x41b691
mov byte [ebp - 0x4d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b7c1
cmp dword [ebp - 0x34], 0
je 0x41b7b9
mov eax, dword [ebp - 0x34]
push eax
call fcn.00405ca4
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b8b7
lea eax, [ebp - 0x94]
mov edx, 9
call fcn.004043f0
lea eax, [ebp - 0x70]
call fcn.00404a10
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404a28
lea eax, [ebp - 0x14]
call fcn.004043cc
ret