Function at 0x421eb4
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push esi
push edi
push 0x4000
push 0x40
call fcn.00401030
mov dword [ebp - 0x18c], eax
push dword [ebp - 0x18c]
call sub.kernel32.dll_GlobalLock
mov edi, dword [ebp - 0x18c]
push 0x45cb12
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x44ef8c
push 0x44b4c3
push str.Accel
call sub.kernel32.dll_GetPrivateProfileStringA
or eax, eax
je 0x421f78
push str.define
push edi
call fcn.00420b04
add edi, eax
mov al, 0x20
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
push edi
call fcn.004010a7
push edi
call fcn.004010ef
add edi, eax
sub eax, 0x1f
neg eax
cmp eax, 0x80000000
jbe 0x421f3e
xor eax, eax
xor edx, edx
idiv dword [0x44f3a5]
inc eax
mov ecx, eax
mov al, 9
rep stosb byte es:[edi], al
push 0x45cb12
push 1
push 0x44b4c7
push str.Accel
call sub.kernel32.dll_GetPrivateProfileIntA
push edi
push eax
call fcn.004011b7
push edi
call fcn.004010ef
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], eax
jmp 0x42207d
inc dword [ebp - 0x184]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x184]
call fcn.004011b7
push 0x45cb12
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x44ef8c
lea eax, [ebp - 0x140]
push eax
push str.Accel
call sub.kernel32.dll_GetPrivateProfileStringA
or eax, eax
je 0x42206e
mov dword [ebp - 0x188], 0
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040cd48
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040cd48
lea eax, [ebp - 0x180]
push eax
call fcn.00401168
or eax, eax
je 0x42207d
cmp byte [ebp - 0x140], 0
je 0x42207d
push str.define
push edi
call fcn.00420b04
add edi, eax
mov al, 0x20
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00420b04
add edi, eax
sub eax, 0x1f
neg eax
cmp eax, 0x80000000
jbe 0x422048
xor eax, eax
xor edx, edx
idiv dword [0x44f3a5]
inc eax
mov ecx, eax
mov al, 9
rep stosb byte es:[edi], al
lea eax, [ebp - 0x180]
push eax
push edi
call fcn.00420b04
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
jmp 0x42207d
inc dword [ebp - 0x188]
cmp dword [ebp - 0x188], 0xa
ja 0x42208d
cmp dword [ebp - 0x184], 0x200
jb 0x421f8b
push 0x45cb12
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x44ef8c
push 0x44b4c3
push str.Accel
call sub.kernel32.dll_GetPrivateProfileStringA
cmp byte [ebp - 0x100], 0
je 0x4220ca
lea eax, [ebp - 0x100]
push eax
push edi
call fcn.004010a7
jmp 0x4220e7
push 0x45cb12
push 1
push 0x44b4c7
push str.Accel
call sub.kernel32.dll_GetPrivateProfileIntA
push edi
push eax
call fcn.004011b7
push edi
call fcn.004010ef
add edi, eax
mov al, 0x20
stosb byte es:[edi], al
push str.ACCELERATORS
push edi
call fcn.00420b04
add edi, eax
mov al, 0x20
stosb byte es:[edi], al
push str.DISCARDABLE
push edi
call fcn.00420b04
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
push str.BEGIN
push edi
call fcn.00420b04
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], eax
jmp 0x42227e
inc dword [ebp - 0x184]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x184]
call fcn.004011b7
push 0x45cb12
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x44ef8c
lea eax, [ebp - 0x140]
push eax
push str.Accel
call sub.kernel32.dll_GetPrivateProfileStringA
or eax, eax
je 0x42226f
mov dword [ebp - 0x188], 0
mov ax, 0x2020
stosw word es:[edi], ax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040cd48
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040cd48
push edi
lea eax, [ebp - 0x100]
push eax
call fcn.0040cd48
push edi
call fcn.004010ef
lea edi, [eax + edi]
mov al, 0x2c
stosb byte es:[edi], al
cmp byte [ebp - 0x140], 0
je 0x4221e2
lea eax, [ebp - 0x140]
jmp 0x4221e8
lea eax, [ebp - 0x180]
push eax
push edi
call fcn.00420b04
add edi, eax
mov al, 0x2c
stosb byte es:[edi], al
push str.VIRTKEY
push edi
call fcn.00420b04
add edi, eax
mov al, 0x2c
stosb byte es:[edi], al
push str.NOINVERT
push edi
call fcn.00420b04
add edi, eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401168
mov esi, eax
test esi, 4
je 0x422237
mov al, 0x2c
stosb byte es:[edi], al
push str.SHIFT
push edi
call fcn.00420b04
add edi, eax
test esi, 8
je 0x42224f
mov al, 0x2c
stosb byte es:[edi], al
push 0x44f111
push edi
call fcn.00420b04
add edi, eax
test esi, 0x10
je 0x422267
mov al, 0x2c
stosb byte es:[edi], al
push 0x44f119
push edi
call fcn.00420b04
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
jmp 0x42227e
inc dword [ebp - 0x188]
cmp dword [ebp - 0x188], 0xa
ja 0x42228e
cmp dword [ebp - 0x184], 0x200
jb 0x42213b
push 0x44f092
push edi
call fcn.00420b04
add edi, eax
mov ax, 0xa0d
stosw word es:[edi], ax
cmp dword [ebp + 8], 0
je 0x4222c8
push 2
call fcn.0042ec60
call fcn.004305a1
call fcn.0042ed4b
push dword [ebp - 0x18c]
call fcn.00430605
jmp 0x42240c
mov word [ebp - 0x100], 0x30
push 0x45cb12
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x44ef8c
lea eax, [ebp - 0x100]
push eax
push str.MakeFiles
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x100]
push eax
call fcn.004010ef
sub eax, 4
mov byte ss:[eax + ebp - 0x100], 0
push 0x45de5e
lea eax, [ebp - 0x140]
push eax
call fcn.004010a7
push str.Res_
lea eax, [ebp - 0x140]
push eax
call fcn.004010c5
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004010c5
push str.Acl.rc
lea eax, [ebp - 0x140]
push eax
call fcn.004010c5
lea eax, [ebp - 0x140]
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x422383
push 0x800000
push 0x45cb12
push 0xfffffffffffffffc
push 0x478
push dword [0x4538b0]
call fcn.00408423
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x140]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x42240c
mov dword [ebp - 0x190], eax
push dword [ebp - 0x18c]
call fcn.004010ef
mov dword [ebp - 0x194], eax
push 0
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x194]
push dword [ebp - 0x18c]
push dword [ebp - 0x190]
call sub.kernel32.dll_WriteFile
push dword [ebp - 0x190]
call sub.kernel32.dll_CloseHandle
inc dword [0x44f339]
push 0x2000
lea eax, [ebp - 0x140]
push eax
push 6
push 0x48e
push dword [0x4538b0]
call fcn.00408423
push dword [ebp - 0x18c]
call sub.kernel32.dll_GlobalUnlock
push dword [ebp - 0x18c]
call sub.kernel32.dll_GlobalFree
pop edi
pop esi
leave
ret 4