Function at 0x421c00
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45247d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x46c098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x46107b
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00402dd0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0042ddc0
add esp, 0xc
lea eax, [ebp - 0x1c0]
push 0x1c
push eax
push fcn.00421c00
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1bc]
je 0x421f46
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0xa
push str.RPAIDE.ini
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
call fcn.00402dd0
push 1
push 0x463aa4
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
call fcn.00402dd0
cmp byte [ebp - 0x114], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jne 0x421d44
xor ecx, ecx
jmp 0x421d59
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421d50
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00402dd0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.004078e0
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004078e0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x12c]
cmp eax, esi
je 0x421df6
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x421dcf
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403540
push esi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00402880
mov eax, dword [ebp - 0x178]
cmp eax, 0x10
jb 0x421e14
inc eax
lea ecx, [ebp - 0x18c]
push eax
push dword [ebp - 0x18c]
call fcn.00403540
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x178], 0xf
mov dword [ebp - 0x17c], 0
mov byte [ebp - 0x18c], 0
cmp eax, 0x10
jb 0x421e4d
inc eax
lea ecx, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
call fcn.00403540
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x190], 0xf
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
cmp eax, 0x10
jb 0x421e86
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403540
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
cmp eax, 0x10
jb 0x421ebf
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00403540
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
cmp eax, 0x10
jb 0x421ef8
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403540
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421f46
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
push 0x190
push str.DebugInfo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
jmp 0x421f4b
mov esi, 0x190
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x421f69
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403540
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042aad6
mov esp, ebp
pop ebp
ret