Function at 0x4051c0
Capabilities:
Delete file
Get file size
Read .ini file
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42306d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString_3
xor ebp, ebp
push 0x428978
mov dword [esp + 0x514], ebp
call fcn.00403b30
mov ebx, dword [esp + 0x528]
add esp, 4
mov ecx, esi
push ebx
call fcn.00407920
mov eax, dword [esp + 0x520]
mov edi, dword [esp + 0x51c]
cmp eax, ebp
je 0x405235
cmp dword [edi], ebp
jne 0x405332
push 0x4285c0
push 0x42895c
push 1
push esi
call fcn.00404a30
push 0x4285c0
lea ecx, [esp + 0x24]
push 0x428938
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
push edx
push 2
push esi
call fcn.00404a30
mov eax, dword [edi]
add esp, 0x28
cmp eax, ebp
jne 0x405332
push 0x428920
call fcn.00403b30
mov eax, dword [esp + 0x51c]
add esp, 4
mov ecx, esi
push ebp
push ebp
push 1
push 0x428910
push ebx
push eax
call fcn.00407b60
mov ebx, eax
xor eax, eax
cmp ebx, ebp
sete al
cmp eax, ebp
mov dword [edi], eax
jne 0x4052fb
lea ecx, [esp + 0x10]
push 0x4288f4
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
push edx
push 1
push esi
call fcn.00404a30
add esp, 0x14
cmp ebx, 0x17
mov dword [esp + 0x510], 0xffffffff
lea ecx, [esp + 0x10]
jne 0x4052ec
call sub.MFC42.DLL_CString::CString
mov eax, 6
jmp 0x405c10
call sub.MFC42.DLL_CString::CString
mov eax, 2
jmp 0x405c10
lea eax, [esp + 0x10]
push 0x4288dc
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
push ecx
push 1
push esi
call fcn.00404a30
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xa8]
add esp, 0x14
push edx
push ebp
push 0x181
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x428910
push 0x42d478
lea ecx, [esp + 0x8c]
push 0x428248
push ecx
mov dword [esp + 0x2c], ebp
call ebx
lea edx, [esp + 0x94]
lea eax, [esp + 0x294]
push edx
push 0x4288d8
push eax
call ebx
mov eax, dword [edi]
add esp, 0x1c
cmp eax, ebp
je 0x40554b
push 0x4288b4
call fcn.00403b30
add esp, 4
lea ecx, [esp + 0x284]
push ebp
push 0x8000000
push 3
push ebp
push 3
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4053cd
lea edx, [esp + 0x284]
push edx
push 0x42889c
call fcn.00403b30
add esp, 8
mov dword [esp + 0x1c], 0
jmp 0x40554b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [esp + 0x18]
push edi
push 0x20
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push 0
push eax
push edi
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x520], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x428890
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
sub edi, eax
lea ecx, [esp + 0x2c]
push edi
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x24]
push edi
push eax
mov byte [esp + 0x518], 2
call fcn.004032e0
lea ecx, [esp + 0x2c]
mov edi, eax
mov byte [esp + 0x510], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x44]
push 0x10
push edx
push edi
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [esp + 0x44]
lea ecx, [esp + 0x14]
push eax
call fcn.0042234c
lea ecx, [esp + 0x14]
mov byte [esp + 0x510], 3
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x284]
lea edx, [esp + 0x44]
push ecx
push 0x14
push edx
push 0x42d680
push 0x428888
push 0x428880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28]
push eax
call fcn.0042234c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x518], 4
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4054f5
push 0x428864
mov dword [esp + 0x20], 1
call fcn.00403b30
add esp, 4
jmp 0x405518
push 0x428844
call fcn.00403b30
add esp, 4
lea eax, [esp + 0x284]
mov dword [esp + 0x1c], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x510], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x510], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x510], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov dword [esi + 0x68], edi
je 0x4059a2
push 0x428830
push 1
push esi
call fcn.00404a30
add esp, 0xc
lea ecx, [esp + 0x284]
push ecx
push edi
push 0x428824
push 0x42881c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov dword [esp + 0x28], 1
push ebp
push 0x4287dc
mov dword [esp + 0x28], ebp
call fcn.00403b30
add esp, 8
test ebp, ebp
jle 0x4059b1
jmp 0x4055b9
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4058a8
lea eax, [edi + 1]
lea edx, [esp + 0x44]
push eax
push 0x4287d4
push edx
mov dword [esp + 0x40], eax
call ebx
add esp, 0xc
lea eax, [esp + 0x284]
lea ecx, [esp + 0x488]
lea edx, [esp + 0x44]
push eax
push 0x80
push ecx
push 0x42d680
push edx
push 0x42881c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x4287c0
call fcn.00403b30
mov al, byte [esp + 0x490]
add esp, 8
test al, al
je 0x405893
lea eax, [esp + 0x388]
push 0x4287bc
lea ecx, [esp + 0x48c]
push eax
push ecx
call fcn.00403670
lea edx, [esp + 0x70]
push 0x4287bc
push edx
push eax
call fcn.00403670
mov ebp, eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
lea ecx, [esp + 0x74]
push 0x4287bc
push ecx
push ebp
mov dword [esp + 0x68], eax
call fcn.00403670
lea edx, [esp + 0x98]
push 0x4287bc
push edx
push eax
call fcn.00403670
add esp, 0x34
lea eax, [esp + 0x58]
lea ecx, [esp + 0x14]
push eax
call fcn.0042234c
lea ecx, [esp + 0x388]
lea edx, [esp + 0x84]
push ecx
push edx
mov byte [esp + 0x518], 5
call fcn.004037a0
add esp, 8
lea eax, [esp + 0x84]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403370
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40571a
lea eax, [esp + 0x84]
push eax
push edi
push 0x42879c
call fcn.00403b30
lea ecx, [esp + 0x90]
push ecx
push 0x428774
push 2
push esi
call fcn.00404a30
add esp, 0x1c
jmp 0x405882
lea edx, [esp + 0x388]
lea eax, [esp + 0x84]
push edx
push eax
mov dword [esp + 0x34], 1
call fcn.00403800
add esp, 8
lea ecx, [esp + 0x84]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.00403370
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405790
lea edx, [esp + 0x84]
push edx
push edi
push 0x428750
call fcn.00403b30
add esp, 0xc
jmp 0x405882
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4057af
mov eax, dword [esp + 0x520]
mov dword [esp + 0x28], 0
test eax, eax
jne 0x4058c2
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x528]
push ecx
mov ecx, dword [esp + 0x520]
lea edx, [esp + 0x390]
push 0
push edx
push eax
push ecx
mov ecx, esi
call fcn.00407b60
test eax, eax
jne 0x40597f
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x84]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00403370
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40590f
lea edx, [esp + 0x84]
push edx
push edi
push 0x428738
call fcn.00403b30
add esp, 0xc
lea eax, [esp + 0x84]
mov ecx, esi
push 1
push eax
call fcn.00407a90
lea ecx, [esp + 0x388]
lea edx, [esp + 0x10]
push ecx
push 0x42872c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
push 1
push esi
call fcn.00404a30
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xa8]
add esp, 0x18
push ecx
push 0
push 0x181
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x510], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp edi, eax
jl 0x4055b3
jmp 0x4059b1
push 0x428714
call fcn.00403b30
add esp, 4
mov dword [esp + 0x18], 3
jmp 0x4059b1
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4058dc
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
push 0x4286d8
mov dword [esi + 0x7c], 0xd
mov dword [esp + 0x20], 6
call fcn.00403b30
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x510], 0
call sub.MFC42.DLL_CString::CString
jmp 0x4059b1
lea ecx, [esp + 0x84]
push ecx
push edi
push 0x4286bc
call fcn.00403b30
add esp, 0xc
lea edx, [esp + 0x84]
mov ecx, esi
push 0
push edx
call fcn.00407a90
lea eax, [esp + 0x388]
lea ecx, [esp + 0x10]
push eax
push 0x4286a0
push ecx
mov dword [esi + 0x7c], 0xd
mov dword [esp + 0x24], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
push edx
push 1
push esi
call fcn.00404a30
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x510], 0
call sub.MFC42.DLL_CString::CString
jmp 0x4059b1
sub eax, 0x17
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
mov byte [esp + 0x510], 0
and al, 0xfc
add eax, 6
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString
jmp 0x4059b1
mov dword [esi + 0x7c], 0xd
mov dword [esp + 0x18], 5
mov eax, dword [esi + 0x60]
test eax, eax
je 0x405be5
mov eax, dword [esp + 0x520]
test eax, eax
jne 0x405be5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405be5
push 0x42868c
call fcn.00403b30
add esp, 4
lea eax, [esp + 0x284]
lea ecx, [esp + 0x44]
push eax
push 0x10
push ecx
push 0x42d680
push 0x428684
push 0x428880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x1c]
push edx
call fcn.0042234c
push 0x428678
push 0x42d478
lea eax, [esp + 0x8c]
push 0x428240
push eax
mov byte [esp + 0x520], 6
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x84]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.00403370
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405bd4
push 0x428658
call fcn.00403b30
push 0x428678
push 0x42d478
lea edx, [esp + 0x90]
push 0x428248
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x38]
add esp, 0x14
lea eax, [esp + 0x84]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.00403370
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405bca
push 0x428628
call fcn.00403b30
mov eax, dword [esp + 0x528]
mov ecx, dword [esp + 0x51c]
add esp, 4
push 0
push 0
push 0
push 0x428678
push eax
push ecx
mov ecx, esi
call fcn.00407b60
test eax, eax
jne 0x405bd4
lea edx, [esp + 0x84]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.00403370
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
push 0x428678
je 0x405b92
lea edx, [esp + 0x14]
push 0x4286a0
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
push 1
push esi
call fcn.00404a30
lea ecx, [esp + 0x9c]
push ecx
push 0x428610
call fcn.00403b30
add esp, 0x20
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405bd4
lea eax, [esp + 0x14]
push 0x42872c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
push ecx
push 1
push esi
call fcn.00404a30
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0xa8]
add esp, 0x18
push edx
push 0
push 0x181
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [edi + 0x52c], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x510], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x78]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x510], 0xffffffff
test edx, edx
sete cl
and ecx, eax
mov dword [esi + 0x74], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x508]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x504
ret 0x10