Function at 0x403810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4544e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x466534
mov esi, ecx
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 4], ebx
xor eax, eax
push 0x66
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x8c], eax
push esi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x98], 0x4037b0
mov dword [ebp - 0x8c], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [ebp - 0x88], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [ebp - 0x9c]
mov edi, str.BlackDesertSplashLauncher
push ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push bind
push str.Black_Desert_Launcher
push edi
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
call edi
push ebx
push esi
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90000000
push str.Black_Desert_Launcher
push str.BlackDesertSplashLauncher
push 0x80000
mov dword [0x46652c], eax
call edi
push 0x46094c
push 0x65
push esi
mov dword [0x466530], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [ebp - 0x14]
push edx
mov esi, eax
push ebx
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x14]
push ecx
push esi
push eax
call fcn.0040d8f0
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
push ebx
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x2c]
push 0x10
mov dword [ebp - 0x24], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4039ac
mov ecx, dword [ebp - 0x24]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
mov dword [ebp - 0x14], esi
jmp 0x4039b1
mov dword [ebp - 0x14], ebx
mov esi, ebx
mov byte [ebp - 4], bl
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x4039e8
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 4]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x403a06
mov dword [esi + 8], eax
mov edx, dword [0x466530]
mov ecx, dword [ebp - 0x10]
push edx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov eax, ecx
shl eax, 5
add eax, 0x1f
sar eax, 3
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x18]
and eax, 0xfffffffc
imul eax, ecx
push ebx
push ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x6c], ecx
push ebx
mov dword [ebp - 0x68], ebx
mov edx, 1
lea ecx, [ebp - 0x74]
mov word [ebp - 0x68], dx
push ecx
mov edx, 0x20
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
push ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x74], 0x28
mov word [ebp - 0x66], dx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x1c]
add edx, edx
add edx, edx
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
call fcn.00411290
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp eax, ebx
je 0x403bac
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], eax
xor eax, eax
push ecx
push esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 2
push 3
push edi
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
cmp eax, ebx
je 0x403b07
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ecx + 4]
push eax
push ebx
push ebx
push edx
push edi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
cmp eax, ebx
je 0x403b26
mov dword [ebp - 0x48], eax
push str.User32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.UpdateLayeredWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea edx, [ebp - 0xa4]
push edx
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [0x466530]
push ecx
mov word [ebp - 0xf], bx
mov byte [ebp - 0xd], bl
push edx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x10], 0x1ff0000
call eax
mov eax, dword [ebp - 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edi
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
cmp eax, ebx
je 0x403b95
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [ebp - 4], bl
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov edi, dword [ebp - 0x24]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [0x466530]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x38], eax
call esi
push 1
mov dword [ebp - 0x20], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x20]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
mov esi, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [ebp - 0x38]
cdq
sub eax, edx
mov edx, dword [ebp - 0x38]
sar eax, 1
sar esi, 1
sub esi, eax
push 0x200
add edx, esi
lea eax, [ecx + edi]
sub edx, esi
push edx
sub eax, ecx
push eax
mov eax, dword [0x466530]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x466534]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret