Function at 0x4216a0
Capabilities:
Delete file
Get common file path
Read .ini file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb2c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0xaeb]
push 0
push eax
mov dword [ebp - 0xb24], ecx
mov byte [ebp - 0xaec], 0
call fcn.0048f070
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4216e0
push 0
push 0x4c72f7
push 0x400
sub eax, edx
lea ecx, [ebp - 0xaec]
push ecx
sar eax, 1
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x4c7d44
lea edx, [ebp - 0xaec]
push edx
lea eax, [ebp - 0xb18]
push eax
mov dword [ebp - 0xb18], 0
call fcn.00490069
mov eax, dword [ebp - 0xb18]
add esp, 0xc
test eax, eax
jne 0x421762
push 0x4b4d0c
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push eax
call fcn.00490fc7
mov ecx, dword [ebp - 0xb18]
push ecx
call fcn.00490f17
push eax
call fcn.00490e21
mov esi, eax
add esp, 0x14
mov dword [ebp - 0xb2c], esi
cmp esi, 0x10
jg 0x4217b3
push 0x4b4cfc
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
push ebx
xor eax, eax
mov ebx, 8
push edi
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb20], ebx
cmp esi, ebx
jle 0x42183b
lea edi, [esi - 8]
mov edx, dword [ebp - 0xb18]
push 0
push edi
push edx
call fcn.00490fc7
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xb18]
push eax
push 8
lea ecx, [ebp - 0xc]
push 1
push ecx
call fcn.00490e04
add esp, 0x1c
mov eax, 8
xor ecx, ecx
lea esp, [esp]
cmp eax, 4
jb 0x421837
mov edx, dword [ebp + ecx - 0xc]
cmp edx, dword [ecx + 0x4b4c8c]
jne 0x421829
sub eax, 4
add ecx, 4
jmp 0x421810
inc ebx
dec edi
mov dword [ebp - 0xb20], ebx
cmp ebx, esi
jl 0x4217d7
jmp 0x42183b
test ebx, ebx
jne 0x421862
push 0x4b4ce8
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
push 0x4b4cd8
push 0x4b1f40
call fcn.0041a0c0
mov ecx, dword [ebp - 0xb18]
mov eax, esi
sub eax, ebx
push 0
sub eax, 4
push eax
push ecx
call fcn.00490fc7
mov edx, dword [ebp - 0xb18]
push edx
push 4
lea eax, [ebp - 0xb1c]
push 1
push eax
mov dword [ebp - 0xb1c], 0
call fcn.00490e04
sub esi, dword [ebp - 0xb1c]
mov ecx, dword [ebp - 0xb18]
sub esi, ebx
push 0
sub esi, 4
push esi
push ecx
call fcn.00490fc7
mov edx, dword [ebp - 0xb1c]
push edx
call fcn.00425b55
mov ecx, dword [ebp - 0xb1c]
mov edi, eax
mov eax, dword [ebp - 0xb18]
push eax
push ecx
push 1
push edi
call fcn.00490e04
add esp, 0x44
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x302]
push eax
mov word [ebp - 0x304], dx
call fcn.0048f070
add esp, 0xc
lea ecx, [ebp - 0x304]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x304]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421922
sub eax, edx
sar eax, 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edx, 0x104
push str.ini_d.ini
sub edx, esi
push edx
lea eax, [ebp + esi*2 - 0x304]
push eax
call fcn.0048f18c
push 0x4b4cbc
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0xb28]
push edx
mov dword [ebp - 0xb28], 0
call fcn.00490b73
mov eax, dword [ebp - 0xb28]
add esp, 0x1c
test eax, eax
je 0x4219a2
push eax
mov eax, dword [ebp - 0xb1c]
push eax
push 1
push edi
call fcn.0048ff1c
mov ecx, dword [ebp - 0xb28]
push ecx
call fcn.0048fd51
add esp, 0x14
test edi, edi
je 0x4219af
push edi
call fcn.0048e22f
add esp, 4
xor eax, eax
xor edx, edx
xor ecx, ecx
push 0xc6
mov word [ebp - 0x20], dx
push ecx
lea edx, [ebp - 0xfa]
push edx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov word [ebp - 0x22], ax
mov word [ebp - 0xfc], cx
call fcn.0048f070
mov esi, dword [ebp - 0xb24]
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
add esp, 0xc
cmp ecx, eax
je 0x421a6d
mov edx, dword [ebp - 0xb2c]
push edx
push ecx
push eax
push eax
call fcn.00421020
mov edi, dword [esi + 0x98]
mov ebx, eax
add esp, 0x10
mov esi, ebx
cmp ebx, edi
je 0x421a5b
nop
cmp dword [esi + 0x14], 8
jb 0x421a41
mov eax, dword [esi]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x28
cmp esi, edi
jne 0x421a30
mov eax, dword [ebp - 0xb24]
mov dword [eax + 0x98], ebx
mov ebx, dword [ebp - 0xb20]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x304]
push edx
push 0x14
lea eax, [ebp - 0x20]
push eax
push 0x4b1974
push str.Count
push str.Count
call edi
lea ecx, [ebp - 0x20]
push ecx
call fcn.0048fa2d
mov edx, dword [ebp - 0xb1c]
lea ecx, [eax - 1]
add esp, 4
lea ebx, [edx + ebx + 4]
mov dword [ebp - 0xb20], ecx
test ecx, ecx
js 0x421c23
jmp 0x421ac6
mov ecx, dword [ebp - 0xb20]
push 0xa
xor eax, eax
push 0xa
lea edx, [ebp - 0x20]
push edx
push ecx
mov dword [ebp - 0xb00], 7
mov dword [ebp - 0xb04], 0
mov word [ebp - 0xb14], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.00490a8b
push 0xc8
lea eax, [ebp - 0xfc]
push 0
push eax
call fcn.0048f070
add esp, 0x1c
lea ecx, [ebp - 0x304]
push ecx
push 0xc8
lea edx, [ebp - 0xfc]
push edx
push 0x4b1974
push str.Code
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0xfc]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x421b42
sub eax, ecx
sar eax, 1
push eax
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0xb14]
call fcn.004110e0
xor eax, eax
lea edx, [ebp - 0x304]
push edx
push 0x14
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
push 0x4b1974
push str.Length
lea ecx, [ebp - 0x20]
push ecx
call edi
lea edx, [ebp - 0x34]
push edx
call fcn.0048fa2d
mov ecx, dword [ebp - 0xb18]
mov dword [ebp - 0xaf4], eax
add ebx, eax
mov eax, dword [ebp - 0xb2c]
push 0
sub eax, ebx
push eax
push ecx
call fcn.00490fc7
mov edx, dword [ebp - 0xaf4]
push edx
call fcn.00425b55
mov ecx, dword [ebp - 0xaf4]
mov esi, eax
mov eax, dword [ebp - 0xb18]
push eax
push ecx
push 1
push esi
call fcn.00490e04
mov ecx, dword [ebp - 0xb24]
add esp, 0x24
lea edx, [ebp - 0xb14]
push edx
add ecx, 0x94
mov dword [ebp - 0xaf8], esi
call fcn.00421590
cmp dword [ebp - 0xb00], 8
jb 0x421c17
mov eax, dword [ebp - 0xb14]
push eax
call fcn.0048e224
add esp, 4
dec dword [ebp - 0xb20]
jns 0x421ac0
mov eax, dword [ebp - 0xb18]
test eax, eax
je 0x421c40
push eax
call fcn.0048fd51
add esp, 4
mov dword [ebp - 0xb18], 0
push 0x3e8
lea ecx, [ebp - 0x6ec]
push 0
push ecx
call fcn.0048f070
add esp, 0xc
lea edx, [ebp - 0x304]
push edx
push 0x3e8
lea eax, [ebp - 0x6ec]
push eax
push 0x4b1974
push 0x4b1c6c
push 0x4b1988
call edi
lea eax, [ebp - 0x6ec]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421c83
mov esi, dword [ebp - 0xb24]
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x6ec]
push ecx
lea ecx, [esi + 0x40]
call fcn.004110e0
push 0x3e8
lea edx, [ebp - 0x6ec]
push 0
push edx
call fcn.0048f070
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
push 0x3e8
lea ecx, [ebp - 0x6ec]
push ecx
push 0x4b1974
push str.PlayName
push 0x4b1988
call edi
lea eax, [ebp - 0x6ec]
lea edx, [eax + 2]
jmp 0x421cf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421cf0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x6ec]
push edx
lea ecx, [esi + 0x5c]
call fcn.004110e0
push 0x3e8
lea eax, [ebp - 0x6ec]
push 0
push eax
call fcn.0048f070
add esp, 0xc
lea ecx, [ebp - 0x304]
push ecx
push 0x104
lea edx, [ebp - 0x6ec]
push edx
push 0x4b1b10
push str.Space
push str.SetupApp
call edi
lea eax, [ebp - 0x6ec]
push eax
call fcn.0048fa2d
add esp, 4
lea ecx, [ebp - 0x304]
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4