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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x47c], ecx
mov ecx, dword [ebp - 0x47c]
call fcn.004c517b
mov ecx, dword [ebp - 0x47c]
call fcn.004583f0
xor eax, eax
mov word [ebp - 0x41c], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x41a]
push ecx
call fcn.004f8090
add esp, 0xc
push 0x15
lea edx, [ebp - 0x428]
push edx
mov ecx, 0x59a55c
call fcn.00494360
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx + 0xf8]
push eax
push 0x544c7c
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x428]
call fcn.0044f990
lea edx, [ebp - 0x41c]
push edx
mov ecx, dword [ebp - 0x47c]
call fcn.004bedf4
call fcn.004c73d3
mov eax, dword [eax + 4]
mov dword [ebp - 0x438], eax
call fcn.004c73d3
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x43c], ecx
mov edx, 0x83
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x440], eax
mov edx, dword [ebp - 0x440]
push edx
push 1
push 0x80
mov eax, dword [ebp - 0x47c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x47c]
push edx
push 0x4591e0
mov eax, dword [ebp - 0x47c]
push eax
push 0x458f50
mov ecx, dword [ebp - 0x47c]
push ecx
push 0x458f20
push ecx
mov ecx, esp
mov dword [ebp - 0x42c], esp
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx + 0xfc]
push eax
call fcn.0044f380
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x47c]
add ecx, 0x74
call fcn.0044d570
mov ecx, dword [ebp - 0x47c]
call fcn.00458bd0
mov ecx, dword [ebp - 0x47c]
call fcn.00458be0
mov ecx, dword [ebp - 0x47c]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.004f8090
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x545030
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.ODMFolder.ini
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x424]
call fcn.0044f460
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
push eax
push 0
push str.OpenFolderCount
push str.ODMFolder
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jge 0x458700
mov dword [ebp - 0x420], 0
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x218]
call fcn.0044f320
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x420]
push edx
push 0x566f9c
lea eax, [ebp - 0x218]
push eax
call fcn.00451560
add esp, 0xc
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x470]
push edx
mov eax, dword [ebp - 0x218]
push eax
push str.OpenFolderCount
push str.ODMFolder
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x430], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0044f990
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret