Function at 0x41c810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x78]
push edi
push 0x104
push 0x4649d0
mov dword [0x4652d4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, 0x4649d0
lea edx, [eax + 1]
xor ebx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41c850
sub eax, edx
cmp byte [eax + 0x4649d0], 0x5c
je 0x41c883
mov edi, 0x4649d0
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x41c870
mov ax, word [0x4536b0]
mov word [edi], ax
mov eax, 0x4649d0
add eax, 0xffffffff
jmp 0x41c890
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x41c890
mov ecx, dword [str.is3encap.ini]
mov edx, dword [0x453ee0]
mov dword [eax], ecx
mov ecx, dword [0x453ee4]
mov dword [eax + 4], edx
mov dl, byte [0x453ee8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
call fcn.004063d0
push ebp
call fcn.0040a7b0
push ebx
mov dword [0x46507c], ebx
call fcn.00415fe0
add esp, 8
test eax, eax
je 0x41c8f8
push 0x240
push ebx
push 0x464ad8
call fcn.0043ae80
add esp, 0xc
mov dword [0x46507c], 1
cmp dword [0x464d10], ebx
jle 0x41c90d
cmp dword [0x464d14], ebx
jle 0x41c90d
call fcn.0040a600
cmp dword [0x464ae4], ebx
je 0x41c95b
cmp dword [0x465300], ebx
je 0x41c926
mov eax, dword [0x464ae8]
cmp byte [eax], bl
je 0x41c95b
mov ecx, dword [0x4652d4]
push ebx
push 0x411c70
push ebx
push str.SplashScreenDlgBox
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x41c95b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043b76b
add esp, 0x68
ret
push 0x3c
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.0043ae80
mov eax, dword [str.Arial]
mov cx, word [0x4535e4]
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], cx
mov dword [esp + 0x3c], 0xfffffff4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push 0xc0c0c0
mov dword [0x464ad4], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x4652e8], eax
xor eax, eax
push 0x453ecc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x41b720
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
call ebp
push 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], str.is3EncapMainMenu
mov dword [esp + 0x38], str.is3EncapWClass
call edi
test ax, ax
je 0x41c943
mov ecx, dword [0x4652d4]
xor eax, eax
push 0x453ecc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x41bfd0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
call ebp
push 0x7f00
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.is3EncapPageMenu
mov dword [esp + 0x38], str.is3EncapPageWClass
call edi
test ax, ax
je 0x41c943
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x4652d4]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x41a270
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.is3EncapPageCanvasWClass
call edi
test ax, ax
je 0x41c943
mov edx, dword [section..data]
push ebx
push esi
push ebx
push ebx
push 0x1c2
push 0x26c
push 0x14
push 0x14
push 0x20a0000
push edx
push str.is3EncapWClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, dword [0x4652d8]
cmp eax, ebx
je 0x41c943
push ebx
push 0x419b60
push eax
push str.MainDlgBox
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
je 0x41c943
call fcn.004060b0
mov eax, dword [0x4652d8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push eax
call esi
mov ecx, dword [0x4652d8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00406130
mov edx, dword [0x4652dc]
push 5
push edx
call esi
mov eax, dword [0x4652dc]
push ebx
push ebx
push 0x464
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043b76b
add esp, 0x68
ret