Function at 0x4039f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x414]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
push 2
lea edx, [ebp - 0x20c]
push edx
push 0
call esi
test eax, eax
jns 0x403a8b
push 0
push 0x17
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
jns 0x403a8b
push 0x30
push 0x41d22c
push 0x418268
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a93
mov cx, word [0x417c84]
mov word [edi], cx
cmp byte [0x41d538], al
je 0x403ace
mov eax, 0x41d538
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ab4
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ac4
jmp 0x403aed
mov eax, 0x41d128
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ad5
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ae5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, eax
push 0
lea edx, [ebp - 0x20c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call ebx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push str.brand
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b34
mov dx, word [0x417c84]
mov eax, 0x41d22c
mov word [edi], dx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b50
lea edi, [ebp - 0x20c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403b60
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x20c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str.game
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d22c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push str._s_s.lnk
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41d740
push 0x41d434
lea eax, [ebp - 0x310]
push 0x417c5c
push eax
call esi
push 0x417d2b
mov edi, 0x41d434
lea ecx, [ebp - 0x108]
lea ebx, [ebp - 0x310]
call fcn.00407af0
add esp, 0x14
test eax, eax
jne 0x403c2f
push 0x30
push 0x41d22c
push 0x4182d0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x418304
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x41d10c], 0
je 0x403d15
push 0
push 0x10
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403c74
mov cx, word [0x417c84]
mov eax, 0x41d22c
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403c90
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ca2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403cc0
mov edx, dword [0x418308]
mov cl, byte [0x41830c]
mov dword [eax], edx
mov byte [eax + 4], cl
push 0x417d2b
mov edi, 0x41d434
lea ecx, [ebp - 0x108]
lea ebx, [ebp - 0x310]
call fcn.00407af0
add esp, 4
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x108]
push eax
push str.desktop
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push 0x418318
push edx
call esi
push 0x41d63c
push 0x41d434
lea eax, [ebp - 0x310]
push 0x417c5c
push eax
call esi
push 0x417d2b
mov edi, 0x41d434
lea ecx, [ebp - 0x108]
lea ebx, [ebp - 0x310]
call fcn.00407af0
add esp, 0x20
test eax, eax
jne 0x403d90
push 0x30
push 0x41d22c
push 0x41832c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x108]
push edx
push str.read_me
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x418368
push ecx
call esi
push str.Setup.exe
push 0x41d434
lea edx, [ebp - 0x310]
push 0x417c5c
push edx
call esi
push 0x417d34
mov edi, 0x41d434
lea ecx, [ebp - 0x108]
lea ebx, [ebp - 0x310]
call fcn.00407af0
add esp, 0x20
test eax, eax
jne 0x403e23
push 0x30
push 0x41d22c
push 0x418380
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str.uninstall
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, 0x41d948
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x520], edi
cmp byte [edi], 0x2a
je 0x403f74
push edi
push 0x41d434
lea edx, [ebp - 0x310]
push 0x417c5c
push edx
call esi
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x310]
call fcn.00407540
add esp, 0x14
test eax, eax
jne 0x403eac
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push 0x417c5c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push 0x417c5c
push edx
call esi
add esp, 0x10
push 0x418308
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x108]
push ecx
call ebx
push edi
push 0x41d434
lea edx, [ebp - 0x310]
push 0x417c5c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
call ebx
push eax
lea ecx, [ebp - 0x310]
push ecx
lea ebx, [ebp - 0x518]
call fcn.0040a830
mov edi, ebx
push 0x417d2b
lea ecx, [ebp - 0x108]
lea ebx, [ebp - 0x310]
call fcn.00407af0
add esp, 0xc
test eax, eax
mov eax, ebx
je 0x403fa8
mov edx, dword [ebp - 0x51c]
push edx
push str.exe_02d
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, ebx
push eax
push str.Link
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [ebp - 0x520]
inc dword [ebp - 0x51c]
add edi, 0x104
mov dword [ebp - 0x520], edi
cmp edi, 0x41e168
jl 0x403e56
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x518]
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
lea ecx, [ebp - 0x414]
push 0x4183c4
push ecx
call esi
add esp, 0x14
push 0x30
push 0x41d22c
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret