Function at 0x41b46c
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 0x41b475
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 0x41ba20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x41b998
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
je 0x41b4be
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.004173ac
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.0041ac4c
test al, al
jne 0x41b51b
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 0x41b9d8
xor eax, eax
push ebp
push 0x41b981
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x4e], 0
je 0x41b562
push 0x800104
push 0
push 0
push 0x41ba34
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 0x41b58e
push 0x104
push 0
push 0
push 0x41ba34
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 0x41b94e
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.00417ce4
test al, al
jne 0x41b5d6
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, 0x41ba4c
call fcn.00404a4c
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b9d8
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.0041bb68
mov byte [ebp - 0x4d], al
cmp byte [ebp - 0x4d], 0
jne 0x41b626
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, 0x41ba64
call fcn.00404b90
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b9d8
cmp dword [ebp + 0x10], 0
je 0x41b75b
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 0x41b6fa
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 0x41b6cc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x6c]
call fcn.0040c190
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x41ba7c
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 0x41b9d8
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 0x41b701
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, 0x41ba94
call fcn.004047e8
jne 0x41b79b
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 0x41b9d8
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 0x41b7f3
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x80]
call fcn.0040c190
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x41baa4
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 0x41b9d8
xor eax, eax
push ebp
push 0x41b92a
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 0x41b880
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x88]
call fcn.0040c190
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 0x41babc
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 0x41b9d8
cmp dword [ebp - 0x3c], 0
jbe 0x41b8fe
cmp dword [ebp + 8], 0
je 0x41b8a1
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 0x41b801
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x90]
call fcn.0040c190
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x41bad8
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 0x41b9d8
cmp dword [ebp - 0x3c], 0
jne 0x41b801
mov byte [ebp - 0x4d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b931
cmp dword [ebp - 0x34], 0
je 0x41b929
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 0x41ba27
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