Function at 0x408cb0
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x447986
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45fce8]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov eax, dword [esp + 0x868]
mov esi, ecx
mov ecx, dword [esp + 0x86c]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.0041cefe
xor ebx, ebx
mov dword [esp + 0x860], ebx
call fcn.0041c933
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408d2f
push 0x80004005
call fcn.004014e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebp, dword [esi + 0x88]
neg ebp
sbb ebp, ebp
and ebp, 0xffffffce
add ebp, 0x64
cmp dword [esi + 0x90], 1
mov byte [esp + 0x860], 1
jne 0x408d65
mov ebp, 0x64
cmp dword [esp + 0x870], ebx
jne 0x408dad
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x860], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x860], 0xffffffff
call fcn.0041cfd2
xor eax, eax
jmp 0x40901f
mov edi, 0x64
mov dword [esi + 0x3fae8], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x3f960]
push 0
push 0x84000002
push connect
push ecx
push edx
sub edi, 1
call dword [sym.imp.WININET.dll_FtpOpenFileA]
test eax, eax
mov dword [esi + 0x3f964], eax
jne 0x408e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.0041cbba
test eax, eax
je 0x408e00
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405890
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x408db8
jmp 0x408e13
cmp edi, 1
jge 0x408e3e
push 0x7d
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
mov ecx, esi
call fcn.004089b0
mov eax, dword [esi + 0x3f964]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x408d6e
mov ecx, dword [0x46d408]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esp + 0x20]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.0041d2bd
test eax, eax
je 0x408faf
cmp dword [esp + 0x870], 0
jbe 0x408f76
mov eax, dword [0x46d408]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408f76
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x408ea0
mov eax, dword [esi + 0x3f964]
lea ecx, [esp + 0x1c]
push ecx
push 0x800
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408f76
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x2c]
call fcn.0041cc4c
add edi, dword [esp + 0x1c]
mov eax, edi
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x408eef
fadd qword [0x44c650]
mov ecx, ebp
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x408f03
fadd qword [0x44c650]
fmulp st(1)
fidiv dword [esp + 0x870]
call fcn.00430d30
push eax
lea ecx, [esi + 0x43f28]
call fcn.0040e120
mov ecx, esi
call fcn.00407de0
push 1
push 0
push 0
push 0
lea edx, [esp + 0x44]
push edx
call ebx
test eax, eax
je 0x408f4d
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp edi, dword [esp + 0x870]
jae 0x408f76
cmp dword [esi + 0x3fae8], 1
je 0x408f81
mov edx, dword [0x46d408]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408ea0
lea ecx, [esp + 0x24]
call fcn.0041ce9c
jmp 0x408fc7
mov eax, dword [esi + 0x3f964]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x24]
call fcn.0041ce9c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041cbca
lea ecx, [esp + 0x14]
call fcn.00401e30
jmp 0x408d92
push 0x89
mov ecx, 0x46d410
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
mov ecx, esi
call fcn.004089b0
mov edx, dword [esi + 0x3f964]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 0x3fae8], 0
mov byte [esp + 0x860], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x860], 0xffffffff
call fcn.0041cfd2
mov eax, 1
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x850
ret 0xc