Function at 0x401b00
Capabilities:
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x6e47f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x5c4], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 4
call fcn.0049f79a
mov edi, eax
add esp, 4
test edi, edi
je 0x401b65
mov ecx, dword [0x6e4004]
mov dword [edi], ecx
mov ecx, edi
push str.imgdecoder_gdip
call fcn.00402db0
jmp 0x401b67
xor edi, edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a2900
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004a1c32
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5b4], 0
push eax
mov dword [ebp - 0x5c0], 0
call fcn.0049c53e
mov ecx, dword [edi]
add esp, 4
mov edx, 0x69b4d0
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x401c07
test si, si
je 0x401c03
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x401c07
add eax, 4
add edx, 4
test si, si
jne 0x401be1
xor eax, eax
jmp 0x401c0c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401c21
lea eax, [ebp - 0x5b4]
push eax
call fcn.0048bf11
jmp 0x401cc8
mov edx, str.imgdecoder_stb
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x401c4e
test si, si
je 0x401c4a
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x401c4e
add eax, 4
add edx, 4
test si, si
jne 0x401c28
xor eax, eax
jmp 0x401c53
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401c65
lea eax, [ebp - 0x5b4]
push eax
call fcn.0048c461
jmp 0x401cc8
mov eax, str.imgdecoder_png
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401c96
test dx, dx
je 0x401c92
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401c96
add ecx, 4
add eax, 4
test dx, dx
jne 0x401c70
xor eax, eax
jmp 0x401c9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401cad
lea eax, [ebp - 0x5b4]
push eax
call fcn.0049595d
jmp 0x401cc8
push str.imgdecoder_gdip
push edi
call fcn.004030b0
test al, al
je 0x401ccb
lea eax, [ebp - 0x5b4]
push eax
call fcn.00496966
add esp, 4
mov ecx, dword [ebp - 0x5c0]
push dword [ebp - 0x5b4]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xb8
call fcn.0049f79a
mov esi, eax
add esp, 4
test esi, esi
je 0x401d33
push 8
call fcn.0049f79a
add esp, 4
test eax, eax
je 0x401d19
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax], vtable.SOUI::TObjRefImpl_struct_SOUI::ISystemObjectRegister_.0
mov dword [eax + 4], 1
mov dword [eax], vtable.SOUI::SObjectDefaultRegister.0
jmp 0x401d1b
xor eax, eax
push eax
push str.SOUIHOST
push ebx
push dword [ebp - 0x5c0]
mov ecx, esi
call fcn.0040f0ce
mov esi, eax
jmp 0x401d35
xor esi, esi
push 0
lea eax, [ebp - 0x5b8]
mov dword [ebp - method.SOUI::TplSObjectFactory_class_SCheckBox2_.virtual_0], vtable.SOUI::TplSObjectFactory_class_SCheckBox2_.0
push eax
lea ecx, [esi + 4]
call fcn.004202a2
push str.soui_sys_resource.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x401dad
lea eax, [ebp - 0x5b8]
mov dword [ebp - 0x5b8], 0
push eax
push 0
call fcn.0041873c
mov ecx, dword [ebp - 0x5b8]
add esp, 8
mov eax, dword [ecx]
push 0
push ebx
call dword [eax + 0xc]
push dword [ebp - 0x5b8]
mov ecx, esi
call fcn.00414d35
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x5b8]
test ecx, ecx
je 0x401dad
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x5bc]
mov dword [ebp - 0x5bc], 0
push eax
push 0
call fcn.0041873c
mov ecx, dword [ebp - 0x5bc]
add esp, 8
mov eax, dword [ecx]
push 0
push dword [ebp - 0x5c4]
call dword [eax + 0xc]
push 1
push 4
push 0x69b6b0
mov ecx, esi
call fcn.0041494b
push str.uidef:xml_init
push dword [ebp - 0x5bc]
lea ecx, [esi + 0x10]
call fcn.00419ef3
push str.LAYOUT:XML_MAINWND
lea ecx, [ebp - 0x5b0]
call fcn.0041b185
push 0
push 0
push 0
push 0
mov dword [ebp - method.SOUI::SHostWnd.virtual_0], vtable.CMainDlg.4.0
mov dword [ebp - method.CMainDlg.3.virtual_0], vtable.CMainDlg.3.0
mov dword [ebp - method.SOUI::SStatic.1.virtual_0], vtable.CMainDlg.2.0
mov dword [ebp - method.SOUI::SWindow.virtual_0], vtable.CMainDlg.1.0
mov dword [ebp - method.CMainDlg.virtual_0], vtable.CMainDlg.0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5b0]
call fcn.0041c449
push 0
push 0
push 0x110
push dword [ebp - 0x374]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x374]
lea ecx, [ebp - 0x380]
call fcn.00402830
push 1
push dword [ebp - 0x374]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x374]
mov ecx, esi
call fcn.00416b42
lea ecx, [ebp - 0x5b0]
mov dword [ebp - method.SOUI::SHostWnd.virtual_0], vtable.CMainDlg.4.0
mov ebx, eax
mov dword [ebp - method.CMainDlg.3.virtual_0], vtable.CMainDlg.3.0
mov dword [ebp - method.SOUI::SStatic.1.virtual_0], vtable.CMainDlg.2.0
mov dword [ebp - method.SOUI::SWindow.virtual_0], vtable.CMainDlg.1.0
mov dword [ebp - method.CMainDlg.virtual_0], vtable.CMainDlg.0
call fcn.0041b6c2
test esi, esi
je 0x401ef0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0x5bc]
test ecx, ecx
je 0x401eff
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5c0]
test ecx, ecx
je 0x401f0e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5b4]
test ecx, ecx
je 0x401f1d
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
sub ecx, 0xc
cmp ecx, dword [section..data]
je 0x401f46
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401f46
push ecx
call fcn.0040dfad
add esp, 4
push 4
push edi
call fcn.0049f7d2
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f7c1
mov esp, ebp
pop ebp
ret 0x10