Function at 0x402e10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4056d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ebp, 1
mov dword [esp + 0x24], ebp
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40320d
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004032e0
test eax, eax
jne 0x402eb3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push str.http:__
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.00404ce8
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00404baa
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004032e0
test eax, eax
je 0x40320d
lea ebx, [esi + 0x20]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00404ce8
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40320d
lea edi, [esi + 0x24]
push ebx
mov ecx, edi
call fcn.00404ce8
push str..down
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov edi, dword [edi]
push 0x408068
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402f20
lea ebp, [esi + 0x38]
mov dword [esi + 0x9c], eax
mov dword [ebp], 0xffffffff
jmp 0x403023
push 0x400
mov dword [esi + 0x9c], ebp
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x100
xor eax, eax
mov edi, ebp
push ebx
push 0x400
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esi + 0x28]
add esp, 0x10
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx - 8]
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.00404ce8
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00404baa
mov ecx, 0x100
xor eax, eax
mov edi, ebp
push ebx
push 0x400
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esi + 0x2c]
add esp, 0xc
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov ecx, dword [edi]
lea edx, [esp + 0x14]
mov eax, dword [ecx - 8]
mov ecx, edi
add eax, 0xfffffffe
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, edi
mov byte [esp + 0x28], 4
call fcn.00404ce8
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00404baa
push ebp
call sub.MFC42.DLL_operatordelete
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [esi + 0x34]
push 4
push eax
call edi
push ebx
push 1
lea ecx, [esi + 0x30]
push 4
push ecx
call edi
push ebx
lea ebp, [esi + 0x38]
push 8
push 4
push ebp
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x38
push 0
mov ecx, esi
call fcn.00403570
test eax, eax
je 0x403185
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::CString
mov bl, 6
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::ReverseFind
push 0x2e
lea ecx, [esp + 0x34]
mov esi, eax
call sub.MFC42.DLL_CString::ReverseFind
sub eax, esi
lea edx, [esi + 1]
dec eax
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x408258
push edx
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00404baa
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push str._slog.txt
push edx
mov byte [esp + 0x30], 8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00404baa
mov eax, dword [esp + 0x10]
push 0x408248
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403164
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
add esp, 0x1c
test ebx, ebx
jg 0x40313f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x408230
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call fcn.00404baa
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00404baa
jmp 0x40320d
cmp dword [ebp], 0xffffffff
jne 0x4031e9
lea edx, [esp + 0x30]
lea ecx, [esi + 0x2c]
push edx
call fcn.00404ce8
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x28]
push eax
call fcn.00404ce8
mov ecx, dword [esi + 0x90]
xor eax, eax
mov dword [esi + 0x30], ecx
mov edx, dword [esi + 0xa0]
mov dword [esi + 0x34], edx
lea ecx, [esi + 0x3c]
mov edx, dword [esi + 0xa0]
add ecx, 8
shr edx, 2
imul edx, eax
mov dword [ecx - 0xc], edx
mov edx, dword [esi + 0xa0]
inc eax
shr edx, 2
imul edx, eax
dec edx
cmp eax, 4
mov dword [ecx - 8], edx
jl 0x4031bc
jmp 0x40329b
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x28]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x403233
push 0
push 0
push str.Maybe_the_download_file_is_not_you_want_you_can_try_to_save_as_another_file_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call fcn.00404baa
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00404baa
xor eax, eax
jmp 0x4032c9
mov edx, dword [esi + 0x90]
push ecx
mov eax, esp
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 0x1c], esp
mov dword [eax], edx
call fcn.00404ab0
test eax, eax
jne 0x40325e
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x54]
dec eax
cmp ecx, eax
je 0x4032a5
mov ecx, dword [esi + 0x90]
xor eax, eax
mov dword [edi], ecx
mov edx, dword [esi + 0xa0]
mov dword [esi + 0x34], edx
lea ecx, [esi + 0x3c]
mov edx, dword [esi + 0xa0]
add ecx, 8
shr edx, 2
imul edx, eax
mov dword [ecx - 0xc], edx
mov edx, dword [esi + 0xa0]
inc eax
shr edx, 2
imul edx, eax
mov dword [ecx - 8], edx
cmp eax, 4
jl 0x403274
mov eax, dword [esi + 0xa0]
dec eax
mov dword [esi + 0x54], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call fcn.00404baa
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00404baa
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8