Function at 0x40e3cf
Capabilities:
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441755
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
mov dword [ebp - 0x1ac], ecx
push 0
push 0x45af90
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], 0
push 0x800
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CSingleLock::Lock
test eax, eax
jne 0x40e44b
push str.914_Service_area_lock_timeout
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 0x168], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x168]
jmp 0x40ebc2
mov eax, dword [ebp - 0x1ac]
xor ecx, ecx
mov cl, byte [eax + 0xe8]
test ecx, ecx
je 0x40e48e
push str.908_FILESAVE_already_running
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 0x16c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x16c]
jmp 0x40ebc2
push 1
mov edx, dword [ebp - 0x1ac]
add edx, 0xe8
push edx
lea ecx, [ebp - 0x60]
call fcn.00410140
mov byte [ebp - 4], 1
push str.915_Executing_cnc_file_upload
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
push 0x4551b4
push 0x3e8
push str.CncFileUplTimeout
push 0x4551d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x3e8
je 0x40e4ef
push str.933_Using_custom_cnc_file_upload_time
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov dword [ebp - 0x18], 0xffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 9
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1b0]
call dword [edx + 4]
mov byte [ebp - 0x38], al
cmp dword [ebp - 0x18], 0xffffffff
je 0x40e530
mov eax, dword [ebp - 0x38]
and eax, 0xff
test eax, eax
jne 0x40e56d
push str.916_Unable_to_open_Device_Driver
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x170]
jmp 0x40ebc2
push 0x20
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_F2MemoryAddress____cdecl_F2MemoryAddress::Instance_void_]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1b4]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004100c0
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40e600
push str.917_DoCncFileUpload:_Unable_to_map_area0
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1b8], eax
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1b8]
call dword [eax + 8]
mov byte [ebp - 0x174], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x174]
jmp 0x40ebc2
mov ecx, dword [ebp - 0x50]
add ecx, 0x100
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x28]
push eax
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x4c]
mov byte [eax + 8], 2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
and ecx, 0xffff0000
sar ecx, 0x10
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x3c]
and edx, 0xffff
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 1
je 0x40e696
mov eax, dword [ebp - 0x48]
sub eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40e64c
cmp dword [ebp - 0x48], 0
jne 0x40e706
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00410110
add esp, 4
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1bc]
call dword [edx + 8]
push str.918_DoCncFileUpload:_unable_to_retrieve_file_name
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 0x178], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x178]
jmp 0x40ebc2
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 9
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], 0
lea ecx, [ebp - 0x34]
call fcn.0043fa26
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
push edx
push str._MODE:__lX_
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x180]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c4]
push ecx
push str.919_DoCncFileUpload:_Opening
lea edx, [ebp - 0x184]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x188]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1d4]
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x184]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
mov edx, dword [ebp - 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1ac]
call fcn.0040e0f4
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40e9d6
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], 0
push 5
call fcn.00410af0
add esp, 4
mov edx, dword [ebp - 0x4c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410110
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x1e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e0]
call dword [eax + 8]
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1e8]
push ecx
push str.920_Unable_to_open_file
lea edx, [ebp - 0x194]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1f0]
push ecx
lea edx, [ebp - 0x198]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1f8]
call fcn.00402550
push eax
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x194]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x19c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov byte [ebp - 0x1a0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x1a0]
jmp 0x40ebc2
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
jne 0x40eb12
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
and eax, 0xffff
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40ea3d
mov ecx, dword [ebp - 0x48]
sub ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x40ea03
cmp dword [ebp - 0x48], 0
jne 0x40ea58
push str.921_DoCncFileUpload:_timeout_in_protocol_during_upload_data
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
jmp 0x40eb12
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1fc], edx
cmp dword [ebp - 0x1fc], 2
je 0x40ea82
cmp dword [ebp - 0x1fc], 3
je 0x40ea7e
cmp dword [ebp - 0x1fc], 4
je 0x40eab7
jmp 0x40eaf9
mov byte [ebp - 0x28], 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call fcn.00410ac0
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x40ea9b
jmp 0x40eb0d
mov edx, dword [ebp - 0x54]
push edx
push 1
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 9
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x40eb0d
mov byte [ebp - 0x28], 1
push 0
push 0
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
push str.940_DoCncFileUpload:_TASK_DESTROYED_BY_CNC__s_NOT_UPLOADED
lea ecx, [ebp - 0x164]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
jmp 0x40eb0d
mov byte [ebp - 0x28], 1
push str.922_DoCncFileUpload:_error_in_protocol
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
jmp 0x40e9da
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x4c]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410110
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x200]
call dword [eax + 8]
push str.923_DoCncFileUpload:_file_transfer_completed_succesfully
mov ecx, dword [ebp - 0x1ac]
call fcn.0040f2ac
mov byte [ebp - 0x1a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402830
mov al, byte [ebp - 0x1a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret