Function at 0x404fbe
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0xf4
mov dword [ebp - 0xa4], 0x4bda00
mov dword [ebp - 0xa0], 0x4be7f2
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x98], 0x404fbe
mov dword [ebp - 0x94], esp
mov dword [esp], eax
call fcn.00414b80
lea eax, [ebp - 0x70]
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 5
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call dword [sym.imp.WININET.DLL_HttpQueryInfoW]
sub esp, 0x14
test eax, eax
mov dword [ebp - 0xd0], 0
mov byte [ebp - 0xc9], 0
jne 0x404f34
mov dword [ebp - 0xc8], 0
mov esi, esi
lea edi, [edi]
lea eax, [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call dword [sym.imp.WININET.DLL_InternetQueryDataAvailable]
sub esp, 0x10
test eax, eax
je 0x404f01
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [ebp - 0xc4], eax
jne 0x404e20
movzx edx, byte [ebp - 0xc9]
mov ecx, dword [ebp - 0xc8]
xor edx, 1
cmp dword [ebp - 0xd0], ecx
sete al
or dl, al
mov byte [ebp - 0xc4], dl
je 0x404f01
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404f08
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call fcn.00404ac0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x58]
lea ecx, [edx + 8]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax]
cmp edx, ebx
je 0x404f85
cmp eax, ecx
je 0x404f6f
mov ebx, dword [ebp + 0xc]
test eax, eax
mov dword [ebx], edx
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 8]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ebx + 8], edx
je 0x404f08
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], ecx
lea ebx, [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x5c], 0
mov word [eax], dx
cmp eax, ebx
je 0x404f08
mov dword [esp], eax
call fcn.004bcd40
jmp 0x404f08
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call fcn.004bcd90
mov ecx, dword [ebp - 0xc4]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0xc0], eax
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x60]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 2
call dword [sym.imp.WININET.DLL_InternetReadFile]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0xc4], eax
je 0x404ee5
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404ee5
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x74]
add dword [ebp - 0xc8], eax
cmp eax, edx
ja 0x404fa8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0xb8], 2
call fcn.004a5c60
mov eax, dword [ebp - 0xc0]
sub esp, 8
mov dword [esp], eax
call fcn.004bcd40
jmp 0x404d20
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.004bcd40
mov ebx, dword [ebp - 0xc4]
test ebx, ebx
jne 0x404d69
mov byte [ebp - 0xc4], 0
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x404f1a
mov dword [esp], eax
call fcn.004bcd40
lea eax, [ebp - 0xbc]
mov dword [esp], eax
call fcn.00414c10
movzx eax, byte [ebp - 0xc4]
mov ebx, dword [ebp - 4]
leave
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd0], eax
mov dword [esp], eax
call fcn.004a5ac0
sub esp, 4
mov byte [ebp - 0xc9], 1
jmp 0x404d0d
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 8], eax
jmp 0x404f08
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], 0
call fcn.004a8c60
mov eax, dword [ebp - 0x60]
sub esp, 4
jmp 0x404dfa
mov dword [esp], 0x4c35d2
mov dword [ebp - 0xb8], 2
call fcn.004b4f60
add ebp, 8
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x404fec
cmp eax, 1
je 0x404fde
ud2
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.004bcd40
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x404ffe
mov dword [esp], eax
call fcn.004bcd40
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov dword [ebp - 0xb8], 0xffffffff
call fcn.00414f10
lea esi, [esi]
lea edi, [edi]