Function at 0x401600
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559340
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x5d061c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cf7f0
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.004ce808
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 ecx, [ebp - 0x4a0]
xor edi, edi
call fcn.0040d0ce
push str.imgdecoder_gdip
lea ecx, [ebp - 0x4a0]
call fcn.0040d293
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x494], edi
call fcn.0040ffb6
push esi
lea ecx, [ebp - 0x4a0]
call fcn.00401150
test eax, eax
je 0x401899
push edi
lea eax, [ebp - 0x490]
push eax
mov eax, dword [ebp - 0x490]
call dword [eax + 0x28]
mov edx, dword [ebp - 0x494]
mov edi, eax
add edx, 4
push 0
push edx
mov esi, dword [edi]
mov ecx, dword [edx]
call dword [ecx + 0xc]
push eax
push edi
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x494]
mov esi, eax
add ecx, 4
push edi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x10]
test esi, esi
jne 0x40170e
mov dword [ebp - 4], esi
jmp 0x401715
mov dword [ebp - 4], 1
test edi, edi
je 0x40171f
mov eax, dword [edi]
push edi
call dword [eax + 4]
push 0
lea eax, [ebp - 0x490]
mov dword [ebp - 4], 0xffffffff
push eax
mov eax, dword [ebp - 0x490]
call dword [eax + 0x28]
mov edx, dword [ebp - 0x494]
mov edi, eax
add edx, 4
push 0
push edx
mov esi, dword [edi]
mov ecx, dword [edx]
call dword [ecx + 0xc]
push eax
push edi
call dword [esi + 0xc]
test eax, eax
je 0x401785
mov eax, dword [ebp - 0x494]
add eax, 4
push 4
push 0x5d11b0
push 0x5d11a0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x494]
add eax, 0xc
push str.uidef:xml_init
push edi
push eax
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 4], 2
test edi, edi
je 0x401796
mov eax, dword [edi]
push edi
call dword [eax + 4]
push str.LAYOUT:XML_MAINWND
lea ecx, [ebp - 0x488]
mov dword [ebp - 4], 0xffffffff
call fcn.0041e38f
push 0
push 0
push 0
push 0
mov dword [ebp - fcn.0040bcf0], vtable.CMainDlg.5.0
mov dword [ebp - method.SOUI::TNativeWndProxy_struct_SOUI::IHostWnd_.1.virtual_0], vtable.CMainDlg.4.0
mov dword [ebp - method.SOUI::TNativeWndProxy_struct_SOUI::IHostWnd_.2.virtual_0], vtable.CMainDlg.3.0
mov dword [ebp - method.SOUI::SHostWnd.3.virtual_0], vtable.CMainDlg.2.0
mov dword [ebp - fcn.00427ec0], vtable.CMainDlg.1.0
mov dword [ebp - method.SOUI::SHostWnd.5.virtual_0], vtable.CMainDlg.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.0041f8ab
push 0
push 0
push 0x110
lea eax, [ebp - 0x484]
push eax
call fcn.00424e78
push dword [ebp - 0x464]
lea eax, [ebp - 0x484]
push eax
call fcn.004244b7
push 1
lea eax, [ebp - 0x488]
push eax
call fcn.004237b1
mov eax, dword [ebp - 0x494]
push dword [ebp - 0x464]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x488]
mov dword [ebp - fcn.0040bcf0], vtable.CMainDlg.5.0
mov edi, eax
mov dword [ebp - method.SOUI::TNativeWndProxy_struct_SOUI::IHostWnd_.1.virtual_0], vtable.CMainDlg.4.0
mov dword [ebp - method.SOUI::TNativeWndProxy_struct_SOUI::IHostWnd_.2.virtual_0], vtable.CMainDlg.3.0
mov dword [ebp - method.SOUI::SHostWnd.3.virtual_0], vtable.CMainDlg.2.0
mov dword [ebp - fcn.00427ec0], vtable.CMainDlg.1.0
mov dword [ebp - method.SOUI::SHostWnd.5.virtual_0], vtable.CMainDlg.0
call fcn.0041ea9e
jmp 0x4018ad
push 0x10
push 0x5a6734
push 0x5a673c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x494]
test ecx, ecx
je 0x4018c7
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x494], 0
lea ecx, [ebp - 0x490]
call fcn.0040ffe2
lea ecx, [ebp - 0x4a0]
call fcn.0040d1d0
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc144
mov esp, ebp
pop ebp
ret 0x10