Function at 0x420230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [0xa2ddf8], esi
mov dword [0xa6d410], 1
mov dword [0xc26fc0], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x412
je 0x420282
cmp eax, 0x812
je 0x420282
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp eax, 0x412
je 0x420282
cmp eax, 0x812
jne 0x420292
push ebx
push 0x42cde0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42029d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov byte [esp + 0x80], bl
mov ecx, 0x3f
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x80]
mov byte [eax + 0xc26fd0], cl
inc eax
cmp cl, bl
jne 0x4202d0
mov eax, 0xc26fd0
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4202f0
mov ecx, dword [0xa2ddf8]
push str.ICON
sub eax, edi
push ecx
mov byte [eax + 0xc26fd0], 0x5c
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x41edf0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [0xa2ddf8]
push ebx
push 0x10
push 0x10
push 1
push str.ICON
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x7f00
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x430d74
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push esi
push ebx
push ebx
push 0x258
push 0x320
push 1
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x12c
push eax
push ebx
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x190
push eax
push 0x808a0000
push 0x42cde0
push 0x430d74
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
mov dword [0x4596d8], eax
call fcn.004233c8
push eax
call fcn.0042339b
push 0x42c48c
push str.speed.dat
call fcn.004231d5
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x420439
push edi
push 0x1770
push 4
push 0xd61550
call fcn.004238a3
push edi
push 0xc8
push 4
push 0xd67310
call fcn.004238a3
push edi
push 0xc8
push 4
push 0xd67630
call fcn.004238a3
push edi
call fcn.0042304e
add esp, 0x34
jmp 0x4204bb
mov eax, dword [0x434240]
xor edi, edi
lea ecx, [edi + eax]
xor edx, edx
mov eax, ecx
imul eax, eax, 0x78
add eax, 0xd61550
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
lea eax, [esp + 0x70]
push eax
mov dword [ecx*4 + 0xd67310], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [0x434240]
movzx ecx, word [esp + 0x76]
lea edx, [edi + eax]
add edi, 0xa
cmp edi, 0xc8
mov dword [edx*4 + 0xd67630], ecx
jl 0x420440
xor eax, eax
push 0xc26fc4
mov ecx, 0x32
mov edi, 0xc24b88
push str.hnctlogo.sys
rep stosd dword es:[edi], eax
mov dword [0xc25000], ebx
mov dword [0xa69eb4], ebx
mov dword [0x8efce4], ebx
mov dword [0xa6d414], ebx
call fcn.00406900
mov eax, dword [0xc26fc4]
add esp, 8
cmp eax, ebx
jne 0x42050e
push 0xc26fc4
push 0xae
call fcn.00406930
add esp, 8
mov eax, dword [0x4596d8]
push eax
call fcn.0040d570
add esp, 4
call fcn.0041db60
call fcn.00405df0
call fcn.00406aa0
call fcn.0041cdc0
mov ecx, dword [0xa2ddf8]
push str.ICON
push ecx
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x41ecd0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [0xa2ddf8]
push ebx
push 0x10
push 0x10
push 1
push str.ICON
push edx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x7f00
push ebx
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x430d50
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [0x4596d8]
push ebx
push esi
push ebx
push ecx
push 0x64
push 0x64
push 0xa
push 0xa
push 0x80800000
push 0x42d048
push 0x430d50
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0xc24b68], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x42c2bc
push 0x20
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push 7
push 0xe
mov dword [0x908df8], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edx, dword [0x908df8]
mov esi, eax
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0xc24b68]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0xc24b68]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0xa68790], ebx
call fcn.0041f980
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x4596dc]
push edx
call sub.WS2_32.dll_closesocket
mov dword [0x4596dc], 0xffffffff
call sub.WS2_32.dll_WSACleanup
mov eax, dword [0xa69bb0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10