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

Disassembly:
push 0x1c4
mov eax, 0x5b07ad
call fcn.0056ce95
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x124], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
lea eax, [edi + 4]
lea esi, [edi + 8]
mov dword [ebp - 0x120], esp
mov dword [edi], vtable.GFE::HttpAccess::HttpResponseStream.0
mov dword [ebp - 0x130], eax
mov dword [eax], ebx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x120], esp
call fcn.0043d42d
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov esi, dword [ebp - 0x128]
mov byte [ebp - 4], 4
lea eax, [esi + 0x1c]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
cmp dword [eax + 0x14], 8
jb 0x483f24
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x483f43
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x120]
mov dword [edi + 0x18], eax
cmp eax, ebx
jne 0x483fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpOpen_failed_with
push edi
mov byte [ebp - 4], 5
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 6
cmp esi, ebx
jle 0x483f9d
and esi, 0xffff
or esi, 0x80070000
push 0x129
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00483163
push 0x5ffd6c
lea eax, [ebp - 0xf8]
push eax
call fcn.005676bc
push ebx
push 0x10000
push 0x48481b
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x484032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpSetStatusCallback_failed_with
push edi
mov byte [ebp - 4], 7
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 8
cmp esi, ebx
jle 0x484028
and esi, 0xffff
or esi, 0x80070000
push 0x138
jmp 0x483fa2
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x48405d
push ebx
call fcn.0047bae8
test al, al
je 0x48405d
lea ebx, [ebp - 0xf8]
call fcn.00485ad3
push 0x5ffbe4
mov eax, ebx
jmp 0x483fbe
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x48]
mov ecx, esi
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
call fcn.004831e4
mov eax, dword [ebp - 0x124]
add esp, 0xc
cmp eax, ebx
je 0x4840bb
push ebx
call fcn.0047bae8
test al, al
jne 0x484046
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4840c7
lea ecx, [ebp - 0x64]
mov eax, dword [edi + 0x18]
push ebx
push dword [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x4840ed
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x12c]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x484151
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpConnect_failed_with
push edi
mov byte [ebp - 4], 0xb
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0xc
cmp esi, ebx
jle 0x484147
and esi, 0xffff
or esi, 0x80070000
push 0x15f
jmp 0x483fa2
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x484169
push ebx
call fcn.0047bae8
test al, al
jne 0x484046
cmp dword [ebp - 0x120], 2
jne 0x484179
mov ecx, 0x800000
jmp 0x48417b
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x484187
lea eax, [ebp - 0x48]
mov edx, dword [edi + 0x1c]
push ecx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x120], edx
call fcn.00483e5c
push eax
push dword [ebp - 0x120]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x4841be
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x120]
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x484222
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpOpenRequest_failed_with
push edi
mov byte [ebp - 4], 0xd
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0xe
cmp esi, ebx
jle 0x484218
and esi, 0xffff
or esi, 0x80070000
push 0x17a
jmp 0x483fa2
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x48423a
push ecx
mov ebx, eax
call fcn.00483421
mov esi, dword [ebp - 0x128]
pop ecx
xor ebx, ebx
mov eax, dword [edi + 0x20]
lea ecx, [esi + 0x3c]
push ecx
push eax
call fcn.004837b4
mov eax, dword [ebp - 0x124]
pop ecx
pop ecx
cmp eax, ebx
je 0x484261
push ebx
call fcn.0047bae8
test al, al
jne 0x484046
mov ecx, dword [esi + 0x4c]
mov esi, dword [esi + 0x50]
cmp ecx, esi
jne 0x484273
mov dword [ebp - 0x128], ebx
jmp 0x48427d
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x128], eax
cmp ecx, esi
jne 0x484285
xor edx, edx
jmp 0x484289
mov edx, esi
sub edx, ecx
push ebx
push dword [ebp - 0x128]
mov eax, ecx
sub eax, esi
neg eax
push edx
sbb eax, eax
and eax, ecx
mov ecx, dword [edi + 0x20]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x484303
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpSendRequest_failed_with
push edi
mov byte [ebp - 4], 0xf
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0x10
cmp esi, ebx
jle 0x4842f9
and esi, 0xffff
or esi, 0x80070000
push 0x19d
jmp 0x483fa2
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x48431b
push ebx
call fcn.0047bae8
test al, al
jne 0x484046
mov eax, dword [edi + 0x20]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x484381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpReceiveResponse_failed_with
push edi
mov byte [ebp - 4], 0x11
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0x12
cmp esi, ebx
jle 0x484377
and esi, 0xffff
or esi, 0x80070000
push 0x1af
jmp 0x483fa2
push dword [edi + 0x20]
lea eax, [ebp - 0x11c]
push eax
call fcn.00483583
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 0x13
call fcn.00409ac6
mov esi, eax
push str.HTTP_response_headers:
push esi
mov byte [ebp - 4], 0x14
call fcn.0040fa1f
push esi
lea ecx, [ebp - 0x11c]
call fcn.0040fbd3
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4843dd
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.0047c666
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040b028
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x13
call fcn.004021a3
and dword [ebp - 0x1c], edi
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 4], 0x16
push dword [ebp - 0x130]
lea eax, [ebp - 0x11c]
push eax
call fcn.00483a85
pop ecx
pop ecx
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
call fcn.00484e06
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x484466
mov edx, dword [eax]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x30], edx
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 0x34], edx
call fcn.0055e74f
pop ecx
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x48447f
push 0
call fcn.0047bae8
test al, al
jne 0x484046
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040b028
push ebx
lea esi, [ebp - 0x11c]
call fcn.0040b028
push ebx
lea esi, [ebp - 0x48]
call fcn.0040b028
push ebx
lea esi, [ebp - 0x64]
call fcn.0040b028
mov eax, dword [ebp - 0x134]
call fcn.0056cf18
ret 8