Function at 0x40fec0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4489e2
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x45ff68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0x104]
call fcn.00411900
mov eax, dword [ebp - 0x104]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp - 0x104]
add ecx, 0xbc
push ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 0xb4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4100a2
push 0xffffffffffffffff
push 0xa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00410b80
add esp, 0xc
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x16c], esp
mov eax, dword [ebp - 0x130]
push eax
push str._sync_data_query_failed_with_error
lea ecx, [ebp - 0x40]
call fcn.00404d20
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x140], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x104]
add eax, 0x60
push eax
push 0x44c654
lea ecx, [ebp - 0x28]
call fcn.00404d20
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x150], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x150]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.0040f070
add esp, 0xc
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x160], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x160]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x114]
push edx
push esi
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x104]
call fcn.004117f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405790
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00405790
jmp 0x4102ea
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0xbc]
add ecx, 1
push ecx
call fcn.0042bc1c
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x108], 0
jne 0x4100f2
push str.Out_of_memory_n
call fcn.004301dd
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 0xbc]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x108]
push eax
call fcn.0042e230
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 0xbc]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 0xb4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4102b3
push 0xffffffffffffffff
push 0xa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00410b80
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], 5
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
mov eax, dword [ebp - 0x144]
push eax
push str._sync_data_read_failed_with_error
lea ecx, [ebp - 0x70]
call fcn.00404d20
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x164], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x104]
add eax, 0x60
push eax
push str.CHttpRequest:_request_for_
lea ecx, [ebp - 0xb8]
call fcn.00404d20
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14c]
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.0040f070
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x15c]
push edx
lea eax, [ebp - 0xd0]
push eax
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x110]
push edx
push esi
call fcn.0040efc0
add esp, 0xc
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x104]
call fcn.004117f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd0]
call fcn.00405790
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x100]
call fcn.00405790
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call fcn.00405790
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00405790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00405790
jmp 0x4102ea
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.00410d60
mov edx, dword [ebp - 0x104]
cmp dword [edx + 0xbc], 0
ja 0x40fefd
mov ecx, dword [ebp - 0x104]
call fcn.00410410
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec10
mov esp, ebp
pop ebp
ret