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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x63
lea eax, [ebp - 0xd7]
mov byte [ebp - 0xd8], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.00451650
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00403a30
test eax, eax
je 0x403ec1
mov ebx, dword [0x6ae3b0]
test ebx, ebx
je 0x403ec1
push 0x257
lea eax, [ebp - 0x587]
mov byte [ebp - 0x588], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
call fcn.004038c0
push 0x4a6890
push 0x258
cmp eax, 1
lea eax, [ebp - 0x588]
push eax
push 0
jne 0x403bf6
push str.Start
jmp 0x403bfb
push str.Game
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403ec1
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403ec1
push 0x257
lea eax, [ebp - 0x32f]
mov byte [ebp - 0x330], 0
push 0
push eax
call fcn.00451650
lea edx, [ebp - 0x588]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403c48
lea edi, [ebp - 0x330]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403c58
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x330]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403c75
mov ax, word [0x480958]
mov edx, 0x6ae530
mov word [edi], ax
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x403c90
lea edi, [ebp - 0x330]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403ca0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x6ae594
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403cc0
sub ecx, edx
je 0x403d16
lea edi, [ebp - 0x330]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403cd2
mov ax, word [0x4809d8]
mov edx, 0x6ae594
mov word [edi], ax
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x403cf0
lea edi, [ebp - 0x330]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d00
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x330]
call fcn.00402460
cmp eax, 1
jne 0x403d51
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00456643
add esp, 8
test eax, eax
je 0x403ec1
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
push 0x8b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403ec1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x590], esi
test esi, esi
je 0x403ec1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x403da8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jb 0x403d90
push ebx
call fcn.00451e73
mov edi, eax
add esp, 4
test edi, edi
je 0x403d90
test ebx, ebx
je 0x403de2
add esi, 0x28
mov ecx, edi
sub esi, edi
mov edx, ebx
jmp 0x403dd0
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x403dd0
mov esi, dword [ebp - 0x590]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x330]
mov dword [ebp - 0x58c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x590], eax
cmp eax, 0xffffffff
je 0x403d90
push 0
lea ecx, [ebp - 0x58c]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
test ebx, ebx
je 0x403e5d
lea edx, [ebx + 0x27]
add edx, esi
nop
mov al, byte [edx]
lea edx, [edx - 1]
mov byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jb 0x403e50
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x590], eax
cmp eax, 0xffffffff
je 0x403d90
push 0
lea ecx, [ebp - 0x58c]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x590]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.0045302d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret