Function at 0x4052b0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41d118
mov eax, dword fs:[0]
push eax
mov eax, 0x273c
call fcn.0041be10
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x2738], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x2750]
mov dword fs:[0], eax
cmp dword [esp + 0x2770], 0
mov eax, dword [esp + 0x276c]
mov esi, dword [esp + 0x2764]
mov ebx, dword [esp + 0x2768]
mov dword [esp + 0x28], eax
je 0x405322
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4055df
call sub.mfc90.dll_Ordinal_1137
movzx ecx, word [esp + 0x2760]
mov eax, dword [eax + 0xc]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_311]
push 0
push 0x4216f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2760], 0
call dword [sym.imp.mfc90.dll_Ordinal_2481]
mov esi, eax
cmp esi, 0xffffffff
je 0x40557f
push esi
push 0x4216ec
lea ecx, [esp + 0x1c]
xor edi, edi
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
je 0x40557f
sub eax, esi
inc eax
push eax
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_4507]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2758], 1
call dword [sym.imp.mfc90.dll_Ordinal_3178]
sub eax, 2
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_4507]
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x275c], 2
call dword [sym.imp.mfc90.dll_Ordinal_899]
cmp al, 0x2a
jne 0x40544f
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
dec eax
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_5997]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x275c], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2758], 2
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edi, 1
mov edx, dword [esp + 0x28]
inc dword [0x42b878]
push edx
push 0x2710
lea eax, [esp + 0x44]
push eax
push str.empty_empty_empty
push 0x4216d4
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x3c]
push str.empty_empty_empty
push ecx
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40549d
lea edx, [esp + 0x3c]
push edx
jmp 0x4054a6
test edi, edi
je 0x4054c0
push 0x42099c
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
jmp 0x405547
push str.charset
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x405547
push 0x4216c8
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x405547
push ebx
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov edi, eax
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x275c], 4
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ebp, eax
push 0x5c
mov ecx, edi
mov byte [esp + 0x275c], 5
call dword [sym.imp.mfc90.dll_Ordinal_5963]
inc eax
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call dword [sym.imp.mfc90.dll_Ordinal_4506]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
inc esi
push esi
push 0x4216f0
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2758], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp esi, 0xffffffff
jne 0x40539d
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x34], 0
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x2750]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2738]
xor ecx, esp
call fcn.0041bd34
add esp, 0x2748
ret