Function at 0x420490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push esi
push edi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x501eb0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
push 0x76
movups xmmword [ebp - 0xb4], xmm0
push edi
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0xb0], 0x41c2c0
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0xa4], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0x94], str.BlackDesertSplashLauncher
mov dword [ebp - 0x90], str.BlackDesertSplashLauncher
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push accept
push str.Black_Desert_Launcher
push str.BlackDesertSplashLauncher
push 0
call esi
push 0
push edi
push 0
push eax
push 0
push 0
push 0
push 0
push 0x90000000
push str.Black_Desert_Launcher
push str.BlackDesertSplashLauncher
push 0x80000
mov dword [0x501ef4], eax
call esi
mov dword [0x501ef8], eax
call fcn.00414240
cmp dword [eax + 0x38], 8
jb 0x4205b8
mov ecx, dword [eax + 0x24]
jmp 0x4205bb
lea ecx, [eax + 0x24]
push 0xb
push str.SHADOWARENA
push dword [eax + 0x34]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
jne 0x4206ac
push 0x200
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [ebp - 0x2b4], ax
jne 0x42062c
xor ecx, ecx
jmp 0x420644
lea ecx, [ebp - 0x2b4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420635
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x24]
call fcn.004096c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push 0xc
push str.SplashImage
call fcn.00416670
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x4d5710
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.004a77c1
add esp, 8
test eax, eax
je 0x4206a0
push eax
call fcn.004b1ad9
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.0041b750
jmp 0x420907
push 0x4d65bc
push 0x75
jmp 0x4208f9
call fcn.00414240
cmp dword [eax + 0x50], 8
jb 0x4206bc
mov ecx, dword [eax + 0x3c]
jmp 0x4206bf
lea ecx, [eax + 0x3c]
push 2
push 0x4d58f8
push dword [eax + 0x4c]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
je 0x420802
push 0x4d5900
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d58e8
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d5908
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d5920
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d5918
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d65c4
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d58d0
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
jne 0x420802
push 0x4d5918
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
je 0x4207a6
push 0x4d65bc
push 0x8c
jmp 0x4207e7
push 0x4d58c0
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
je 0x4207c4
push 0x4d65bc
push 0x69
jmp 0x4207e7
push 0x4d5920
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
push 0x4d65bc
test al, al
je 0x4207e5
push 0x82
jmp 0x4207e7
push 0x68
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call fcn.0041b980
add esp, 8
mov dword [0x501eb4], eax
jmp 0x420938
push 0x200
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [ebp - 0x2b4], ax
jne 0x420859
xor ecx, ecx
jmp 0x420871
lea ecx, [ebp - 0x2b4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420862
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x24]
call fcn.004096c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
push 0xc
push str.SplashImage
call fcn.00416670
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x4d5710
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.004a77c1
add esp, 8
test eax, eax
jne 0x420684
push 0x4d5918
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
test al, al
je 0x4208d6
push 0x4d65bc
push 0x8c
jmp 0x4208f9
push 0x4d5920
call fcn.00414240
mov ecx, eax
call fcn.0041ebd0
push 0x4d65bc
test al, al
je 0x4208f7
push 0x82
jmp 0x4208f9
push 0x68
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call fcn.0041b980
add esp, 8
mov dword [0x501eb4], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x420928
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00409d20
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 0x14], eax
mov esi, dword [0x501eb4]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x420958
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x501eb4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x42097e
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push dword [0x501ef8]
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x2c]
mov edi, eax
mov eax, dword [ebp - 0x28]
mov edx, ecx
shl edx, 5
xorps xmm0, xmm0
add edx, 0x1f
mov dword [ebp - 0x68], 0
sar edx, 3
push 0
movups xmmword [ebp - 0x88], xmm0
and edx, 0xfffffffc
mov dword [ebp - 0x84], eax
imul edx, eax
lea eax, [ebp - 0x34]
push 0
push eax
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x28
push eax
movups xmmword [ebp - 0x78], xmm0
push 0
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], 0x200001
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x34], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x28]
mov esi, eax
imul ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], esi
shl ecx, 2
push ecx
push 0
push dword [ebp - 0x34]
call fcn.0049edb0
add esp, 0xc
test esi, esi
je 0x420b32
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38]
movd dword [ebp - 0x14], xmm0
push eax
psrldq xmm0, 4
push edi
movd dword [ebp - 0x10], xmm0
mov dword [ebp - 0x38], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov esi, eax
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push 3
push eax
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x40], esi
mov eax, dword [0x501eb4]
test eax, eax
je 0x420a99
mov eax, dword [eax + 4]
jmp 0x420a9b
xor eax, eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0
push 0
push eax
push dword [ebp - 0x30]
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push str.User32.DLL
cmovne esi, eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.UpdateLayeredWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
lea ecx, [ebp + 8]
mov dword [ebp - 0x64], 0
push ecx
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 0
push ecx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], 0x1ff0000
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x3c]
push dword [0x501ef8]
call eax
push dword [ebp - 0x58]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [ebp - 0x30]
call sub.gdiplus.dll_GdipReleaseDC
push dword [ebp - 0x5c]
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [ebp - 4], 0
push dword [ebp - 0x30]
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x3c]
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00423c40
mov eax, dword [ebp - 0x48]
add esp, 4
mov edx, dword [ebp - 0x50]
sub eax, edx
mov ecx, dword [ebp - 0x54]
push 0x200
push eax
mov eax, dword [ebp - 0x4c]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 4], 0xffffffff
push dword [0x501eb0]
call sub.gdiplus.dll_GdiplusShutdown
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret