Function at 0x407fe0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b7a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
mov ebp, dword [esp + 0x348]
push esi
mov ebx, ecx
push edi
mov ecx, 0x43
xor eax, eax
mov edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
lea eax, [ebx + 4]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x23c]
push 0x105
push eax
push 0x43a370
push 0x4382cc
push 0x4382c0
call esi
lea edi, [ebx + 0x108]
add ebp, 2
push edi
push 0x105
push ebp
push 0x43a370
push 0x4382cc
push 0x4382c0
mov dword [esp + 0x34], edi
call esi
cmp byte [ebp], 0
je 0x408147
lea ecx, [esp + 0x20]
call fcn.00409900
push ecx
mov dword [esp + 0x34c], 0
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041fa47
lea ecx, [esp + 0x24]
call fcn.00409940
test eax, eax
jne 0x408129
push ebp
lea ecx, [esp + 0x14]
call fcn.0041fa47
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 1
call fcn.0041df42
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041e073
test eax, eax
jl 0x408118
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041dffb
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
push 0
push 0x43a370
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40810b
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40810f
mov byte [ebp], 0
lea ecx, [esp + 0x14]
call fcn.0041f9d9
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], 0
call fcn.0041f9d9
lea ecx, [esp + 0x20]
mov dword [esp + 0x348], 0xffffffff
call fcn.00409930
cmp byte [ebp], 0
jne 0x40835e
mov al, byte [esp + 0x238]
test al, al
jne 0x408215
lea edx, [esp + 0x2c]
push 0x105
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4081cb
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4081cb
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x5c
je 0x408198
cmp al, 0x2f
je 0x408198
dec ecx
jns 0x408187
jmp 0x4081cb
mov byte [esp + ecx + 0x2c], 0
mov edi, 0x4382bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4382b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x408234
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00409900
push ecx
mov dword [esp + 0x34c], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041fa47
lea ecx, [esp + 0x28]
call fcn.00409940
test eax, eax
jne 0x408330
push ebp
lea ecx, [esp + 0x14]
call fcn.0041fa47
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 3
call fcn.0041df42
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041e073
test eax, eax
jl 0x40831f
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.0041dffb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push ecx
push 0
push 0x43a370
push edx
mov byte [esp + 0x358], 4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4082e2
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40830e
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00408f70
mov edx, dword [eax]
push 0x4382b0
push edx
push 0x438174
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.0041f9d9
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], 3
call fcn.0041f9d9
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], 2
call fcn.0041f9d9
mov eax, dword [esp + 0x1c]
push eax
push ebp
push 0x4382cc
push 0x4382c0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x24]
mov dword [esp + 0x348], 0xffffffff
call fcn.00409930
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x238]
test al, al
jne 0x40837f
mov ecx, dword [esp + 0x28]
push ecx
push ebp
push 0x4382cc
push 0x4382c0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push 0x4382a0
push 0x4382c0
call esi
mov ebx, dword [esp + 0x350]
push edi
push 1
push 0x438294
push 0x4382c0
mov word [ebx], ax
call esi
mov ecx, dword [esp + 0x340]
pop edi
pop esi
mov dword [ebx + 0x108], eax
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x33c
ret 4