Function at 0x41f556
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0x1a4
mov eax, 0x460d6c
call fcn.0043c4da
mov edi, ecx
mov dword [ebp - 0x114], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x118], edi
xor ecx, ecx
lea ebx, [edi + 8]
mov dword [ebp - 4], ecx
mov dword [edi], vtable.GFE::HttpAccess::HttpResponseStream.0
mov dword [edi + 4], ecx
mov dword [ebp - 0x114], ebx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
call fcn.004209d8
mov dword [ebx], eax
xor edx, edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
lea ebx, [edi + 0x30]
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], edx
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], edx
jb 0x41f5c7
mov eax, dword [ebx]
jmp 0x41f5c9
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x41f5dd
mov eax, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x10c], eax
je 0x41f603
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x41f694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpOpen_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x16f
cmovle eax, esi
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x108]
call fcn.0041e773
push 0x487db8
lea eax, [ebp - 0x108]
push eax
call fcn.00440ad9
push 4
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], edi
push eax
push 0x2d
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x41f71b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpSetOption_for_WINHTTP_OPTION_CONTEXT_VALUE_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x183
cmovle eax, esi
jmp 0x41f672
push 0
push 0x100ff
push 0x420050
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x41f79e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpSetStatusCallback_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x192
cmovle eax, esi
jmp 0x41f672
push 7
pop edx
xor ecx, ecx
mov dword [ebp - 0x44], edx
xor eax, eax
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x58]
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041e897
add esp, 0xc
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push 0
push dword [ebp - 0x10c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x10c], eax
je 0x41f821
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x41f891
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpConnect_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x1be
cmovle eax, esi
jmp 0x41f672
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [esi + 0x30]
cmovae ecx, dword [ebp - 0x40]
sub eax, 0
je 0x41f8ca
sub eax, 1
je 0x41f8c3
push str.Invalid_HttpRequestMethod
lea ecx, [ebp - 0x1c]
call fcn.00410744
push 0x487d10
lea eax, [ebp - 0x1c]
jmp 0x41f68e
mov edx, 0x47b0bc
jmp 0x41f8cf
mov edx, str.POST
xor eax, eax
mov dword [ebp - 0x10c], 0x800000
cmp dword [ebp - 0x110], 2
cmove eax, dword [ebp - 0x10c]
push eax
xor eax, eax
push eax
push eax
push eax
push ecx
push edx
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x10c], eax
je 0x41f915
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10c]
cmp dword [ebp - 0x110], 2
mov dword [edi + 0x18], eax
jne 0x41f9cc
mov dword [ebp - 0x110], 0xa00
call fcn.00424a1b
mov ecx, dword [ebp - 0x110]
cmp eax, 7
push 4
lea eax, [ebp - 0x110]
mov edx, 0x80
push eax
push 0x54
push dword [edi + 0x10]
cmovl ecx, edx
mov dword [ebp - 0x110], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x41f9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpSetOption_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x1e6
cmovle eax, esi
jmp 0x41f672
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x41fa3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpOpenRequest_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x1f1
cmovle eax, esi
jmp 0x41f672
cmp dword [esi + 0x48], 0
je 0x41fa4e
push dword [esi + 0x48]
push 3
pop edx
call fcn.0041eac1
pop ecx
cmp dword [esi + 0x4c], 0
je 0x41fa63
push dword [esi + 0x4c]
mov ecx, dword [edi + 0x18]
push 5
pop edx
call fcn.0041eac1
pop ecx
cmp dword [esi + 0x50], 0
je 0x41fa78
push dword [esi + 0x50]
mov ecx, dword [edi + 0x18]
push 6
pop edx
call fcn.0041eac1
pop ecx
cmp dword [esi + 0x54], 0
je 0x41fa8d
push dword [esi + 0x54]
mov ecx, dword [edi + 0x18]
push 7
pop edx
call fcn.0041eac1
pop ecx
mov ecx, dword [edi + 0x18]
lea edx, [esi + 0x34]
call fcn.0041eda3
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x40]
jne 0x41faa4
xor edx, edx
jmp 0x41faa9
mov edx, dword [esi + 0x40]
sub edx, eax
cmp eax, dword [esi + 0x40]
jne 0x41fab2
xor ecx, ecx
jmp 0x41fab7
mov ecx, dword [esi + 0x40]
sub ecx, eax
cmp eax, dword [esi + 0x40]
jne 0x41fabe
xor eax, eax
push 0
push edx
push ecx
push eax
push 0
push 0
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41fb3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpSendRequest_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
push ebx
call fcn.0040635c
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x220
cmovle eax, esi
jmp 0x41f672
push 0
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 0x10], 0
mov esi, eax
mov dword [ebp - 0x110], esi
jne 0x41fb82
mov edx, dword [edi + 0x18]
lea ecx, [ebp - 0x28]
call fcn.0041f302
push eax
mov ecx, ebx
call fcn.0040627a
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408a5c
cmp dword [ebp - 0x10c], 0
jne 0x41fbe7
lea ecx, [ebp - 0x1b0]
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
push ecx
lea ecx, [ebp - 0x110]
push ecx
push str.WinHttpReceiveResponse_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
push ebx
call fcn.0040635c
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x23b
cmovle eax, esi
jmp 0x41f672
mov edx, dword [edi + 0x18]
lea ecx, [ebp - 0x70]
push ebx
call fcn.0041ebe0
push ecx
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x108]
mov esi, dword [edi + 0x18]
call fcn.00409102
mov edx, str.HTTP_request
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x108]
call fcn.0040c870
push fcn.004023d0
lea ecx, [ebp - 0x108]
call fcn.0040be57
push esi
lea ecx, [ebp - 0x108]
call fcn.00420ac0
mov edx, str.:_response_headers:_n
lea ecx, [ebp - 0x108]
call fcn.0040c870
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x108]
call fcn.0040ca40
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x108]
call fcn.0040620b
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 4
cmovae edx, dword [ebp - 0x28]
pop ecx
call fcn.0041dcb0
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00408a5c
lea ecx, [ebp - 0x108]
call fcn.00402673
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [edi + 4]
mov byte [ebp - 4], 0x1b
push eax
lea edx, [edi + 8]
lea ecx, [ebp - 0x70]
call fcn.0041efd8
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [edi + 8]
call fcn.0041e350
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x41fce4
mov ecx, dword [eax]
mov dword [edi + 0x28], ecx
mov ecx, dword [eax + 4]
push 8
push eax
mov dword [edi + 0x2c], ecx
call fcn.0043beef
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x28]
push ebx
inc esi
push esi
call fcn.00408a5c
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00408a5c
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.00408a5c
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.00408a5c
mov eax, edi
call fcn.0043c484
ret 8