Function at 0x555ea0
Capabilities:
Create directory
Get common file path
Get session user name
Log keystrokes via application hook
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x594
push ebx
push esi
push edi
push 0x8081c4
call dword [sym.imp.USER32.dll_GetClipCursor]
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor edi, edi
push edi
push 0x70fc0c
push 8
push 0x3a
call esi
push edi
push 0x70fc14
push 8
push 0x34
call esi
push edi
push 0x70fc1c
push 0x18
push 0x32
call esi
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push edi
push 0x942114
push edi
push 0x10
mov dword [0x942334], eax
call esi
cmp dword [0x942114], edi
je 0x555f17
push 2
push edi
push edi
push 0x11
call esi
and dword [0x942114], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x555f37
push str._mce
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
neg eax
sbb eax, eax
neg eax
mov dword [0x942110], eax
jmp 0x555f3d
mov dword [0x942110], edi
push 0x555b40
call fcn.004a9213
mov eax, dword [str.SegaRally_]
mov ecx, dword [0x6bb5c4]
mov dx, word [0x6bb5c8]
add esp, 4
push 0x100
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
mov al, byte [0x6bb5ca]
lea ecx, [esp + 0x9f]
push edi
push ecx
mov word [esp + 0xa4], dx
mov byte [esp + 0xa6], al
call fcn.004ae0b0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x9e]
push eax
mov dword [esp + 0x1c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x555fe0
lea ecx, [esp + 0x90]
push ecx
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x555fe0
lea edx, [esp + 0x90]
push edx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x94233c], eax
cmp dword [0x94233c], edi
jne 0x556011
xor eax, eax
call fcn.00578cc0
mov ecx, eax
mov eax, 9
call fcn.00578cc0
push edi
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
cpuid
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
shr eax, 0x1a
test al, 1
jne 0x556037
xor eax, eax
call fcn.00578cc0
mov ecx, eax
mov eax, 4
jmp 0x555ff6
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x556056
xor eax, eax
call fcn.00578cc0
mov ecx, eax
mov eax, 7
jmp 0x555ff6
push edi
mov dword [esp + 0x14], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x5560d5
lea ecx, [esp + 0xc]
push ecx
push 0x6f8884
push 1
push edi
push 0x6f8874
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x5560cf
lea edx, [esp + 0x18]
push edx
call fcn.0041d700
lea esi, [esp + 0x18]
call fcn.0041d6c0
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov edx, dword [ecx]
lea esi, [esp + 0x10]
push esi
push eax
push ecx
mov ecx, dword [edx + 0x18]
call ecx
test eax, eax
jge 0x5560b8
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea edi, [esp + 0x18]
call fcn.0041c390
xor edi, edi
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x10], edi
jne 0x5560ee
xor eax, eax
call fcn.00578cc0
mov ecx, eax
mov eax, 8
jmp 0x555ff6
call fcn.00555be0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x34], 0x555c00
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call esi
push 0x7f00
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x6bb5cc
mov dword [esp + 0x58], edi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x7b8
push edi
push 0x725c58
call fcn.004ae0b0
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
push eax
push edi
mov dword [0x725c58], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push edi
push edi
push edi
push edi
push edi
push 0x721730
push str.SegaClass
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebp + 0x14]
push edx
push eax
mov dword [0x725c5c], eax
mov dword [0x9cdcb8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0058b6d0
push edi
push edi
call esi
push eax
push 0x555ad0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, dword [0x725c5c]
mov dword [0x942338], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x2c], 5
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov dword [0x725c7c], edi
call fcn.00578e50
lea edx, [esp + 0x1a0]
push edx
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x55629d
push 0x6ed1ec
lea eax, [esp + 0x1a4]
push eax
mov ecx, eax
push 0x6bb5e4
push ecx
call fcn.004a961b
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push edi
lea edx, [esp + 0x1a4]
push edx
call esi
cmp eax, 3
je 0x55629d
push str.Saved_Games
lea eax, [esp + 0x1a4]
push eax
mov ecx, eax
push 0x6bb5ec
push ecx
call fcn.004a961b
add esp, 0x10
push edi
lea edx, [esp + 0x1a4]
push edx
call esi
cmp eax, 3
je 0x55629d
push str.config.ini
lea eax, [esp + 0x1a4]
push eax
mov ecx, eax
push 0x6bb5f4
push ecx
call fcn.004a961b
add esp, 0x10
lea edx, [esp + 0x1a0]
push edx
jmp 0x55629e
push edi
mov esi, 0xa00420
call fcn.00587c60
call fcn.00555390
cmp dword [0x725c7c], edi
mov dword [0x725c6c], 0x64
mov dword [0x7e418c], 0x710da0
mov dword [0x7e4180], 0xffffffff
mov dword [0x7e4184], edi
jne 0x5563f0
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push edi
push edi
push edi
lea eax, [esp + 0x84]
push eax
call esi
test eax, eax
je 0x556329
jmp 0x556300
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
push edi
lea eax, [esp + 0x84]
push eax
call esi
test eax, eax
jne 0x556300
cmp dword [0x725c7c], edi
jne 0x5563f0
mov eax, dword [0x725c6c]
cmp eax, 0xffffffff
jle 0x55637f
cmp eax, edi
jle 0x55637a
call fcn.005872c0
mov esi, edx
cmp esi, dword [0x725c74]
mov ebx, eax
jb 0x55637f
ja 0x55635e
cmp ebx, dword [0x725c70]
jb 0x55637f
call fcn.00555390
mov eax, dword [0x725c6c]
cdq
add eax, ebx
adc edx, esi
mov dword [0x725c70], eax
mov dword [0x725c74], edx
jmp 0x55637f
call fcn.00555390
call fcn.00590590
call fcn.0066a900
cmp dword [0x9cdcbc], edi
je 0x5563a1
cmp dword [0x710d88], edi
jne 0x5563a1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x9cdd20]
and ecx, 0x1ff
cmp ecx, 0x1ff
jne 0x5563e4
push 0x1c
lea edx, [esp + 0x5c]
push edx
push 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x74], 1
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
call dword [sym.imp.USER32.dll_SendInput]
cmp dword [0x725c7c], edi
je 0x5562dd
push str.Quitting_n
call fcn.00408d10
mov eax, dword [0x725c5c]
add esp, 4
cmp eax, edi
je 0x556420
push eax
push str.Closing_window__x_n
call fcn.00408d10
mov eax, dword [0x725c5c]
add esp, 8
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00595780
push str.Running_destructors_n_n
call fcn.00408d10
add esp, 4
xor edi, edi
call fcn.00582fa0
call fcn.00578e20
call fcn.005870d0
int3