Function at 0x56d6a9
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0xd93040]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
lea eax, [esp + 0x38]
mov dword [0xd952c4], 0xa
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x64], 1
je 0x56d6ec
movzx eax, word [esp + 0x68]
mov dword [0xd952c4], eax
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
mov esi, 0x7f00
push esi
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x56d719
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.loading_default_icon_for_window_classes
push eax
call fcn.0056d61a
pop ecx
jmp 0x56d99f
push esi
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, eax
test esi, esi
jne 0x56d735
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.loading_default_cursor_for_window_classes
jmp 0x56d70d
mov edx, esi
mov ecx, edi
call fcn.0057107f
mov dword [esp + 0x34], eax
test eax, eax
je 0x56d752
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
jmp 0x56d70d
mov eax, dword [0xd952c8]
xorps xmm0, xmm0
and dword [esp + 0xc], 0
and dword [esp + 0x2c], 0
push 0x80
push eax
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x38], str.libui_uiWindowClass
mov dword [esp + 0x18], 0x5711d5
mov dword [esp + 0x24], eax
call ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 6
call fcn.00567c7d
test ax, ax
jne 0x56d7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.registering_uiWindow_window_class
jmp 0x56d70d
push 0x1f4
xor ebx, ebx
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.00d2a220
add esp, 0xc
lea eax, [esp + 0x80]
mov ecx, 0x1f8
mov dword [esp + 0x80], ecx
push ecx
push eax
push ecx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x56d7fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.getting_default_fonts
jmp 0x56d70d
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0xd952c0], eax
test eax, eax
jne 0x56d825
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.loading_default_messagebox_font__this_is_the_default_UI_font
jmp 0x56d70d
mov edx, esi
mov ecx, edi
call fcn.0056af34
test ax, ax
jne 0x56d843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.initializing_uiWindowsMakeContainer___window_class
jmp 0x56d70d
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [0xd952bc], eax
test eax, eax
jne 0x56d864
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.getting_hollow_brush
jmp 0x56d70d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x56d87e
cmp eax, 1
je 0x56d87e
mov ecx, str.initializing_COM
jmp 0x56d70d
call fcn.0056d59a
push 0xd952b0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ebx
push eax
push 0xd51450
push ebx
call dword [sym.imp.d2d1.dll_Ordinal_1]
test eax, eax
je 0x56d8ab
mov ecx, str.initializing_Direct2D
jmp 0x56d70d
push 0xd952b4
push 0xd5c440
push ebx
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
test eax, eax
je 0x56d8ca
mov ecx, str.initializing_DirectWrite
jmp 0x56d70d
mov eax, dword [0xd952c8]
lea ecx, [esp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x2c], ebx
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x30], str.libui_uiAreaClass
mov dword [esp + 0x10], 0x567db5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x10
mov dword [esp + 0xc], 3
call fcn.00567c7d
test ax, ax
jne 0x56d926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.registering_uiArea_window_class
jmp 0x56d70d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0xd952c8]
push 0x56daa3
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0xd95364], eax
test eax, eax
jne 0x56d959
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.registering_libui_message_filter
jmp 0x56d70d
mov edx, esi
mov ecx, edi
call fcn.0056b40f
test ax, ax
jne 0x56d977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.initializing_D2D_scratch_window_class
jmp 0x56d70d
push 0xd952b8
push 0xd51420
push 1
push ebx
push 0xd5bfac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x56d99d
mov ecx, str.initializing_WIC
jmp 0x56d70d
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00d27f4f
mov esp, ebp
pop ebp
ret