Function at 0x405270
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x42f370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x206
lea eax, [ebp - 0x316]
push 0
push eax
mov ebx, ecx
mov esi, edx
mov word [ebp - 0x318], 0
call fcn.004145e0
add esp, 0xc
push 0
push 0
push 0
push 0
push str.Mixin_page
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x40533d
lea esi, [ebp - 0x318]
call fcn.00407130
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x4307e4
mov ecx, 0x433620
call fcn.0040b560
mov ecx, esi
push ecx
push str.MIXIN_TITLE_NOT_CONNECT_SERVER
push 0x4307c8
mov ecx, 0x433620
call fcn.0040b560
mov ecx, dword [0x4307e8]
mov eax, 8
add esp, 0x14
cmp dword [0x4307fc], eax
jae 0x405313
mov ecx, 0x4307e8
cmp dword [0x4307e0], eax
mov eax, dword [0x4307cc]
jae 0x405325
mov eax, 0x4307cc
mov edx, dword [0x4315c8]
push 0x10
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x405562
push 0
push 0x84080100
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x4053d1
lea esi, [ebp - 0x318]
call fcn.00407130
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x4307e4
mov ecx, 0x433620
call fcn.0040b560
mov eax, esi
push eax
push str.MIXIN_TITLE_NOT_CONNECT_SERVER
push 0x4307c8
mov ecx, 0x433620
call fcn.0040b560
add esp, 0x14
mov ecx, dword [0x4307e8]
mov eax, 8
cmp dword [0x4307fc], eax
jae 0x4053a7
mov ecx, 0x4307e8
cmp dword [0x4307e0], eax
mov eax, dword [0x4307cc]
jae 0x4053b9
mov eax, 0x4307cc
push 0x10
push ecx
mov ecx, dword [0x4315c8]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x405562
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
mov byte [ebp - 0x110], 0
call fcn.004145e0
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push ebx
mov dword [ebp - 0x31c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4054a0
lea esi, [ebp - 0x318]
call fcn.00407130
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x4307e4
mov ecx, 0x433620
call fcn.0040b560
mov edx, esi
push edx
push str.MIXIN_TITLE_NOT_CONNECT_SERVER
push 0x4307c8
mov ecx, 0x433620
call fcn.0040b560
mov ecx, dword [0x4307e8]
mov eax, 8
add esp, 0x14
cmp dword [0x4307fc], eax
jae 0x40546b
mov ecx, 0x4307e8
cmp dword [0x4307e0], eax
mov eax, dword [0x4307cc]
jae 0x40547d
mov eax, 0x4307cc
push 0x10
push ecx
push eax
mov eax, dword [0x4315c8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
jmp 0x405562
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
lea ecx, [ebp - 0x110]
push str.xml_version_1.0__encoding_utf_8_
push ecx
call fcn.004118e0
add esp, 8
test eax, eax
jne 0x40554f
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x4307e4
mov ecx, 0x433620
call fcn.0040b560
add esp, 8
call dword [0x42f09c]
lea edx, [ebp - 0x110]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x405530
lea eax, [edi + edi]
call fcn.00414530
mov esi, esp
test esi, esi
je 0x405530
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 0
push ebx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x405532
xor eax, eax
push eax
push str.MIXIN_TITLE_NOT_CONNECT_SERVER
push 0x4307c8
mov ecx, 0x433620
call fcn.0040b560
add esp, 0xc
jmp 0x40538f
lea edx, [ebp - 0x110]
push edx
call fcn.00410a90
mov dword [esi], eax
mov eax, 1
lea esp, [ebp - 0x328]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004110f4
mov esp, ebp
pop ebp
ret