Function at 0x4565d0
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], 0
cmp eax, 0x80000
ja 0x456c00
je 0x456bd6
cmp eax, 0x800
je 0x456bcb
cmp eax, 0x10000
je 0x456c4d
cmp eax, 0x20000
jne 0x456c0e
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x38], 4
call edi
test eax, eax
je 0x456c24
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x16
push dword [esi + 8]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x456b1d
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
shr ecx, 1
cmp ecx, ebx
ja 0x4566d8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x456749
mov eax, dword [ebp - 0x18]
mov edx, ecx
sub edx, ebx
sub eax, ebx
cmp edx, eax
ja 0x456730
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x138], eax
lea eax, [eax + ebx*2]
mov dword [ebp - 0x13c], eax
test edx, edx
je 0x45671f
mov edi, dword [ebp - 0x13c]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [ebp - 0x138]
lea eax, [ebx + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x456749
push 0
push edx
mov byte [ebp - 0x138], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x138]
push edx
call fcn.00457740
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
push 0
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 0x16
push dword [esi + 8]
call edi
test eax, eax
je 0x456b17
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
push 0xb0
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004bb410
mov dword [ebp - 0x134], 0x505a24
mov dword [ebp - 0x124], 0x505a1c
mov dword [ebp - 0xcc], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x138], 1
lea ecx, [ebp - 0x134]
push eax
call fcn.00456c90
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea eax, [ebp - 0x11c]
mov ecx, eax
mov dword [ebp - 0x140], eax
call fcn.00457020
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ebx, dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x13c], eax
xor eax, eax
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
cmp ebx, 0x7fffffff
ja 0x456c6d
test ebx, ebx
je 0x4568ec
add ebx, ebx
cmp ebx, 0x1000
jb 0x45687d
lea eax, [ebx + 0x23]
or ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.0046c968
add esp, 4
test eax, eax
je 0x456c72
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x456890
test ebx, ebx
je 0x45688e
push ebx
call fcn.0046c968
add esp, 4
mov edi, eax
jmp 0x456890
xor edi, edi
push ebx
push dword [ebp - 0x13c]
push edi
call fcn.004ba910
lea eax, [ebx + edi]
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x110]
sar ebx, 1
mov dword [eax], edi
mov eax, dword [ebp - 0x100]
mov dword [eax], edi
mov eax, dword [ebp - 0xf0]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xe4]
sub ecx, edi
sar ecx, 1
mov dword [eax], edi
mov eax, dword [ebp - 0xfc]
mov dword [eax], edi
mov eax, dword [ebp - 0xec]
mov dword [eax], ecx
mov eax, 1
jmp 0x4568f2
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
call fcn.00457690
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x456ad2
nop word [eax + eax]
push str.HTTP_
lea ecx, [ebp - 0x158]
call fcn.0042f790
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x148]
cmp dword [ebp - 0x40], eax
jae 0x456943
xor bl, bl
jmp 0x45695a
lea ecx, [ebp - 0x158]
push ecx
push eax
push 0
lea ecx, [ebp - 0x50]
call fcn.00429b60
test eax, eax
sete bl
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x144]
cmp edx, 8
jb 0x45699e
mov ecx, dword [ebp - 0x158]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456994
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c72
push edx
push ecx
call fcn.0046c951
add esp, 8
test bl, bl
jne 0x456ab4
push ecx
push 0x506668
lea ecx, [ebp - 0x50]
call fcn.0043cd60
mov edi, eax
cmp edi, 0xffffffff
je 0x456ab4
sub esp, 0x18
mov ecx, esp
push edi
push 0
push ecx
lea ecx, [ebp - 0x50]
call fcn.00431fa0
mov edx, str.__t_n_r_f_v
lea ecx, [ebp - 0x80]
call fcn.00459c10
mov ecx, esp
mov byte [ebp - 4], 7
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00431fa0
mov edx, str.__t_n_r_f_v
lea ecx, [ebp - 0x68]
call fcn.00459c10
add esp, 0x18
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0xd8]
call fcn.00456470
add esp, 4
mov ecx, eax
call fcn.00432190
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x456a62
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456a58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c72
push edx
push ecx
call fcn.0046c951
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x456ab4
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456aaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c72
push edx
push ecx
call fcn.0046c951
add esp, 8
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x134]
call fcn.00457690
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x456920
lea ecx, [ebp - 0x134]
call fcn.00452630
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x456b17
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456b0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c72
push edx
push ecx
call fcn.0046c951
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push 0
sub eax, ecx
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x456b88
call ebx
mov esi, eax
test esi, esi
jle 0x456b47
movzx esi, si
or esi, 0x80070000
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x456b81
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456b77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c77
push edx
push ecx
call fcn.0046c951
add esp, 8
mov eax, esi
jmp 0x456c4f
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x456c4d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456bbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456c7c
push edx
push ecx
call fcn.0046c951
add esp, 8
jmp 0x456c4d
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x456c4d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x456bfd
push eax
push dword [esi + 0xc]
call fcn.00456f60
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push 0
sub eax, ecx
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x456c20
push ecx
jmp 0x456c48
cmp eax, 0x200000
je 0x456c38
cmp eax, 0x400000
je 0x456c15
mov eax, 1
jmp 0x456c4f
push 0
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x456c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x456c4f
movzx eax, ax
or eax, 0x80070000
jmp 0x456c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov dword [esi + 0x20], 1
mov ecx, esi
call fcn.00456ed0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret 0xc
call fcn.00469bde
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
int3