Function at 0x41cad0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68
mov eax, dword [0x4630b0]
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 0x464990
mov dword [0x465294], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, 0x464990
lea edx, [eax + 1]
xor ebx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41cb10
sub eax, edx
cmp byte [eax + 0x464990], 0x5c
je 0x41cb43
mov edi, 0x464990
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x41cb30
mov ax, word [0x4536b0]
mov word [edi], ax
mov eax, 0x464990
add eax, 0xffffffff
jmp 0x41cb50
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x41cb50
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.00406680
push ebp
call fcn.0040aa60
push ebx
mov dword [0x46503c], ebx
call fcn.004162a0
add esp, 8
test eax, eax
je 0x41cbb8
push 0x240
push ebx
push 0x464a98
call fcn.0043b0e0
add esp, 0xc
mov dword [0x46503c], 1
cmp dword [0x464cd0], ebx
jle 0x41cbcd
cmp dword [0x464cd4], ebx
jle 0x41cbcd
call fcn.0040a8b0
cmp dword [0x464aa4], ebx
je 0x41cc1b
cmp dword [0x4652c0], ebx
je 0x41cbe6
mov eax, dword [0x464aa8]
cmp byte [eax], bl
je 0x41cc1b
mov ecx, dword [0x465294]
push ebx
push 0x411f10
push ebx
push str.SplashScreenDlgBox
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x41cc1b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043b3fc
add esp, 0x68
ret
push 0x3c
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.0043b0e0
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 [0x464a94], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x4652a8], 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], 0x41b9e0
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 0x41cc03
mov ecx, dword [0x465294]
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], 0x41c290
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 0x41cc03
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 [0x465294]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x41a530
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 0x41cc03
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 [0x465298]
cmp eax, ebx
je 0x41cc03
push ebx
push 0x419e20
push eax
push str.MainDlgBox
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
je 0x41cc03
call fcn.00406360
mov eax, dword [0x465298]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push eax
call esi
mov ecx, dword [0x465298]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004063e0
mov edx, dword [0x46529c]
push 5
push edx
call esi
mov eax, dword [0x46529c]
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.0043b3fc
add esp, 0x68
ret