Function at 0x428730
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e19c
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
lea eax, [edx + eax*2]
push eax
push edx
call fcn.00428d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
movzx eax, word [edi + 0x18]
cmovae ecx, dword [ebp - 0x28]
push 0
push eax
push ecx
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
jne 0x42882a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], str.HttpGet::Download
mov edx, str.Failed_WinHttpConnect
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.00408070
push esi
lea ecx, [ebp - 0xf0]
call fcn.0041fd70
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], bl
call fcn.00402230
cmp dword [ebp - 0x14], 8
jb 0x428a6c
push dword [ebp - 0x28]
call fcn.00466e37
add esp, 4
jmp 0x428a6c
mov ecx, dword [edi + 0x2c]
xor edx, edx
mov eax, dword [edi + 0x30]
push dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
lea eax, [ecx + eax*2]
mov word [ebp - 0x40], dx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00428d80
push pe_nt_image_headers32
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push 0x4af640
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
test edi, edi
jne 0x42892d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x4c], str.HttpGet::Download
mov edx, str.Failed_WinHttpOpenRequest
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.00408070
push esi
lea ecx, [ebp - 0xf0]
call fcn.0041fd70
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.00402230
cmp dword [ebp - 0x2c], 8
jb 0x4288ef
push dword [ebp - 0x40]
call fcn.00466e37
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x428914
push dword [ebp - 0x28]
call fcn.00466e37
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x428a67
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4289e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x4c], str.HttpGet::Download
mov edx, str.Failed_WinHttpSendRequest
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call fcn.00408070
push esi
lea ecx, [ebp - 0xf0]
call fcn.0041fd70
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.00402230
cmp dword [ebp - 0x2c], 8
jb 0x4289ac
push dword [ebp - 0x40]
call fcn.00466e37
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4289d1
push dword [ebp - 0x28]
call fcn.00466e37
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x428a64
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x428a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x4c], str.HttpGet::Download
mov edx, str.Failed_WinHttpReceiveResponse
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf0]
call fcn.00408070
push esi
lea ecx, [ebp - 0xf0]
call fcn.0041fd70
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.00402230
jmp 0x428a54
push dword [ebp - 0x48]
push edi
call fcn.00428a90
mov esi, eax
lea ecx, [ebp - 0x40]
call fcn.0040d330
lea ecx, [ebp - 0x28]
call fcn.0040d330
push edi
call ebx
push dword [ebp - 0x44]
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8