Function at 0x403130
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2a54
call fcn.0040cc30
mov eax, dword [0x414014]
xor eax, esp
mov dword [esp + 0x2a50], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x2800
lea eax, [esp + 0x25c]
mov dword [esp + 0x84], 0
xorps xmm0, xmm0
mov byte [esp + 0x88], 0
push 0
push eax
movups xmmword [esp + 0x7c], xmm0
mov dword [esp + 0x5c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x158]
push 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xf0]
push 0x65
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x88]
push 0x64
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov word [esp + 0x24], ax
mov byte [esp + 0x26], al
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], edx
xorps xmm0, xmm0
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x64]
movsd qword [esp + 0x64], xmm0
push eax
call fcn.0040a240
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0xc
push str.Initial.ini
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x258]
push dword [esp + 0x1c]
push 0x2800
push eax
push 0
push 0
push str.ThreadInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test ebx, ebx
jle 0x403946
mov ebx, dword [sym.imp.mfc140.dll_Ordinal_4807]
lea edx, [esp + 0x258]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
mov ecx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], edx
cmp byte [edx + eax], 0
jne 0x403934
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x258]
add eax, ecx
push eax
lea eax, [esp + 0x50]
push 0x40e998
push eax
call ebx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1526]
mov ecx, dword [edi + 0xa8]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_8467]
test eax, eax
jne 0x403505
push 0x194
call dword [sym.imp.mfc140.dll_Ordinal_1507]
add esp, 4
test eax, eax
je 0x403379
xorps xmm0, xmm0
mov dword [eax + 0x174], 0
movsd qword [eax + 0x16c], xmm0
movsd qword [eax + 0x178], xmm0
mov dword [eax + 0x180], 0
jmp 0x40337b
xor eax, eax
push 0x194
push 0
push eax
mov dword [esp + 0x20], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
push dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esp + 0x24], ax
mov byte [esp + 0x26], al
push 0x65
push eax
lea eax, [esp + 0xf8]
push eax
call sub.VCRUNTIME140.dll_memset
movq xmm0, qword [str.0_2020_01_01]
add esp, 0xc
mov eax, dword [0x40f158]
mov ecx, 0x415824
movq qword [esp + 0x158], xmm0
mov dword [esp + 0x160], eax
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0xc
push str.Initial.ini
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x158]
push dword [esp + 0x34]
push 0xff
push eax
push 0
push dword [esp + 0x1c]
push str.ThreadInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x164]
push str._2_____20_____100___
push eax
call fcn.00401220
add esp, 0x14
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x30]
push 0x40e998
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 0x190], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x188], 0
mov ecx, dword [esp + 0x14]
movq xmm0, qword [esp + 0x64]
movq qword [ecx + 0x16c], xmm0
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x174], eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x14]
push 0x40e998
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 4
push dword [esp + 0x18]
lea ecx, [ecx + 0x178]
call fcn.00409cc0
push dword [esp + 0xc]
mov ecx, dword [edi + 0xa8]
mov esi, dword [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1654]
mov dword [eax], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0xc
push str.Initial.ini
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x88]
push dword [esp + 0x38]
push 0x64
push eax
push 0x40e9a7
push str.Ver_PosServer
push str.UpgradeSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x24]
push 0x40e998
push eax
call ebx
add esp, 0xc
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0x1b
push str.UpgradeFilesPosServer.exe
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push str.PosServer.exe
push dword [esp + 0x10]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x403680
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40365c
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jle 0x403680
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
jle 0x403680
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x403680
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [esp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push 0x40f1c4
push eax
call ebx
add esp, 0x14
jmp 0x40366f
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0x40f1d8
push eax
call ebx
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x466
push dword [edi + 0x20]
call esi
push str.ExchangeServer.exe
push dword [esp + 0x10]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x4037fb
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0xc
push str.Initial.ini
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x88]
push dword [esp + 0x40]
push 0x64
push eax
push 0x40e9a7
push str.Ver_ExchangeServer
push str.UpgradeSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x24]
push 0x40e998
push eax
call ebx
add esp, 0xc
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 0x20
push str.UpgradeFilesExchangeServer.exe
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x4037d7
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jle 0x4037fb
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
jle 0x4037fb
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x4037fb
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [esp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push 0x40f1c4
push eax
call ebx
add esp, 0x14
jmp 0x4037ea
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0x40f1d8
push eax
call ebx
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x466
push dword [edi + 0x20]
call esi
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.00402f10
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
jne 0x4038ec
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_12826]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_8322]
mov esi, eax
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [esi]
push 1
push 0x40ed0c
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x60]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x190]
cmp eax, 1
jne 0x40389e
push eax
jmp 0x4038a5
cmp eax, 2
jne 0x4038c0
push 0
push dword [esp + 0x34]
push 0x40e9a7
push dword [esp + 0x18]
push 0x40f238
push dword [edi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push 0x40f240
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x1c]
add esp, 0xc
push 0
push eax
push 0x466
push dword [edi + 0x20]
call esi
jmp 0x403928
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push 0x40f25c
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x466
push dword [edi + 0x20]
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [eax + 0x188], 2
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
inc eax
sub ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
jne 0x4032e3
mov ecx, edi
call fcn.00404060
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [esp + 0x2a5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bb2c
mov esp, ebp
pop ebp
ret