Function at 0x1005f246
Capabilities:
Print debug messages

Disassembly:
push 0xdc
mov eax, 0x101e54e9
call fcn.10043cd5
mov ebx, ecx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp + 8]
call fcn.100a8191
test al, al
je 0x1005f32d
mov ecx, dword [0x10282acc]
xor ebx, ebx
test ecx, ecx
je 0x1005f27f
call fcn.1004f683
mov esi, eax
jmp 0x1005f281
mov esi, ebx
push 0x2801
call fcn.100b7336
mov dword [esp], str.Null_XML_node
mov edi, eax
push 0xffffffffffffffff
push 0x2800
push edi
call fcn.100267d0
add esp, 0x10
mov byte [eax + edi], bl
test esi, esi
je 0x1005f2dd
mov eax, dword [esi]
mov ecx, esi
push 3
push ebx
call dword [eax + 0x2c]
test al, al
je 0x1005f2dd
push dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
push str.SOUI::SHostWnd::InitFromXml
push 0xc2
push str.srccore_shostwnd.cpp
push edi
push str.soui
push 3
push ebx
call dword [eax + 0x34]
jmp 0x1005f31f
push 0x2801
call fcn.100b7336
push 0xc2
push str.srccore_shostwnd.cpp
push str.SOUI::SHostWnd::InitFromXml
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
mov esi, eax
push 0x2800
push esi
call fcn.100267d0
add esp, 0x24
mov byte [eax + esi], bl
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.100b7331
pop ecx
push edi
call fcn.100b7331
pop ecx
xor eax, eax
jmp 0x1005fbe0
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005f326
mov eax, dword [ebx + 0x40c]
test eax, eax
je 0x1005f36a
test al, 2
je 0x1005f353
lea ecx, [ebx - 8]
call fcn.10061f57
test byte [ebx + 0x40c], 1
je 0x1005f36a
mov ecx, ebx
call fcn.10058e38
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
lea esi, [ebx + 0x3f0]
xor edi, edi
mov dword [ebp - 0x34], esi
cmp dword [esi], edi
je 0x1005f3c7
lea eax, [ebx - 8]
neg eax
lea ecx, [ebp - 0xd0]
sbb eax, eax
and eax, ebx
push eax
call fcn.10056e44
mov dword [ebp - 0xd0], 0x101f0ec4
mov dword [ebp - 0xc8], 0x101f0ed8
mov eax, dword [ebx]
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, ebx
mov dword [ebp - 4], edi
call dword [eax + 0xa4]
mov ecx, dword [esi]
test ecx, ecx
je 0x1005f3c3
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi], edi
or dword [ebp - 4], 0xffffffff
push edi
push edi
push edi
push 2
mov ecx, ebx
call fcn.1005c630
mov ecx, dword [0x10282acc]
push esi
call fcn.1004f10d
lea esi, [ebx + 0x2fc]
mov ecx, esi
call fcn.1005f1fb
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebx + 0x394]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f424
call fcn.100617cd
push dword [ebx + 0x394]
mov ecx, dword [0x10282acc]
push 5
call fcn.1004f65a
mov ecx, eax
call fcn.1006f2ac
push edi
push str.style
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
call fcn.100a88b0
xor esi, esi
lea ecx, [ebp - 0x4c]
inc esi
push esi
call fcn.100ac189
push dword [ebp - 0x4c]
mov ecx, dword [ebx + 0x394]
call fcn.1006ef54
mov ecx, dword [ebx + 0x394]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f474
push ecx
mov ecx, dword [0x10282acc]
push 5
call fcn.1004f65a
mov ecx, eax
call fcn.1006f2f6
mov ecx, dword [ebx + 0x398]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f4a2
call fcn.1004a381
push dword [ebx + 0x398]
mov ecx, dword [0x10282acc]
push 7
call fcn.1004f65a
mov ecx, eax
call fcn.1004a26f
push edi
push str.skin
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 8]
call fcn.100a88b0
push esi
lea ecx, [ebp - 0x50]
call fcn.100ac189
push dword [ebp - 0x50]
mov ecx, dword [ebx + 0x398]
call fcn.10049e7b
mov ecx, dword [ebx + 0x398]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f4ef
push ecx
mov ecx, dword [0x10282acc]
push 7
call fcn.1004f65a
mov ecx, eax
call fcn.1006f2f6
mov ecx, dword [ebx + 0x39c]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f51d
call fcn.10061790
push dword [ebx + 0x39c]
mov ecx, dword [0x10282acc]
push 6
call fcn.1004f65a
mov ecx, eax
call fcn.1006f2ac
push edi
push 0x101f1630
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 8]
call fcn.100a88b0
push esi
lea ecx, [ebp - 0x54]
call fcn.100ac189
push dword [ebp - 0x54]
mov ecx, dword [ebx + 0x39c]
call fcn.1006f059
mov ecx, dword [ebx + 0x39c]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], 0
je 0x1005f56a
push ecx
mov ecx, dword [0x10282acc]
push 6
call fcn.1004f65a
mov ecx, eax
call fcn.1006f2f6
push edi
push str.script
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 8]
call fcn.100a88b0
push esi
lea ecx, [ebp - 0x3c]
call fcn.100ac189
lea esi, [ebx + 0x3f0]
cmp dword [esi], 0
je 0x1005f72d
lea ecx, [ebp - 0x3c]
call fcn.100a8184
test eax, eax
je 0x1005f72d
push edi
push 0x101edbb0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100a883f
lea ecx, [ebp - 0x30]
call fcn.100a8184
test eax, eax
je 0x1005f6b1
lea ecx, [ebp - 0x30]
call fcn.100ac8f0
push eax
lea ecx, [ebp - 0x38]
call fcn.10020b80
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100a74d9
add esp, 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff4
mov byte [ebp - 4], 4
cmp ecx, dword [0x102717b8]
je 0x1005f606
call fcn.1001f8b0
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1004c122
pop ecx
pop ecx
cmp eax, 2
jne 0x1005f69d
mov eax, dword [ebp - 0x6c]
mov ecx, dword [0x10282acc]
push dword [eax + 4]
lea ecx, [ecx + 0x10]
push dword [eax]
call fcn.1004b481
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1005f69d
push eax
lea ecx, [ebp - 0x80]
call fcn.100acefa
mov ecx, dword [ebp - 0x6c]
push dword [ebp - 0x38]
mov ebx, dword [0x10282acc]
mov byte [ebp - 4], 6
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
lea ecx, [ebp - 0x80]
call fcn.100acf55
push eax
push esi
push edi
lea ecx, [ebx + 0x10]
call fcn.1004b402
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x80]
push dword [ebp - 0x38]
mov esi, dword [esi]
mov edi, dword [esi]
call fcn.100acf55
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [ebp - 0x80]
call fcn.100acf1f
mov ebx, dword [ebp - 0x24]
xor edi, edi
lea ecx, [ebp - 0x6c]
call fcn.1004aee3
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 7
jmp 0x1005f719
lea ecx, [ebp - 0x3c]
call fcn.100a88f3
push eax
lea ecx, [ebp - 0x24]
call fcn.10020b80
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 8
cmp dword [eax - 8], edi
je 0x1005f70f
push 0xfde9
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100a73db
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [esi]
mov byte [ebp - 4], 9
push dword [eax - 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff4
mov byte [ebp - 4], 0xa
cmp ecx, dword [0x102717b8]
je 0x1005f70f
call fcn.1001f8b0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xb
add ecx, 0xfffffff4
cmp ecx, dword [0x102717b8]
je 0x1005f729
call fcn.1001f8b0
or dword [ebp - 4], 0xffffffff
push 0xfffffffffffffff0
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [ebx + 0x2e8]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebx + 0x354]
mov ecx, edx
and ecx, 0x100
neg ecx
sbb ecx, ecx
and ecx, 0x50000
add ecx, 0x20000
or esi, ecx
test edx, 0x200
je 0x1005f780
or esi, 0x80000
or eax, 0x40000
jmp 0x1005f78d
test edx, 0x400
je 0x1005f78d
or eax, 0x80
mov ecx, eax
or ecx, 0x80000
and edx, 0x800
cmove ecx, eax
mov eax, dword [ebx + 0x358]
test eax, eax
je 0x1005f7b0
mov esi, eax
and esi, 0xefffffff
mov eax, dword [ebx + 0x35c]
test eax, eax
push edi
cmovne ecx, eax
push esi
mov dword [ebp - 0x34], ecx
lea ecx, [ebx + 0x2dc]
push edi
call fcn.10055af2
mov esi, dword [ebp - 0x34]
lea ecx, [ebx + 0x2dc]
push edi
push esi
push edi
call fcn.10055b44
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x364]
call fcn.10059659
push dword [ebp - 0x48]
lea ecx, [ebx + 0x2dc]
mov dword [ebp - 4], 0xc
call fcn.10024d20
mov eax, dword [ebx + 0x370]
test eax, eax
je 0x1005f81f
push eax
push edi
push 0x80
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x374]
test eax, eax
je 0x1005f83d
push eax
push 1
push 0x80
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push str.width
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.100a883f
push edi
push str.height
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 8]
call fcn.100a883f
push edi
push str.root
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.100a88b0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100ac189
lea ecx, [ebp - 0x40]
call fcn.100a8184
test eax, eax
je 0x1005f8c0
push edi
lea ecx, [ebp - 0x40]
call fcn.100a9641
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100a883f
mov ecx, eax
call fcn.100a8191
test al, al
je 0x1005f8c0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100a86ad
lea ecx, [ebp - 0x44]
call fcn.100a8184
test eax, eax
je 0x1005f900
push edi
lea ecx, [ebp - 0x44]
call fcn.100a9641
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100a883f
mov ecx, eax
call fcn.100a8191
test al, al
je 0x1005f900
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100a86ad
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.10059870
test dword [ebx + 0x354], 0x800
je 0x1005f9de
push 0xffffffffffffffec
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x20
call fcn.10043366
mov esi, eax
pop ecx
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0xd
test esi, esi
je 0x1005f967
push edi
mov ecx, esi
call fcn.10055703
lea eax, [ebx - 8]
mov dword [esi], vtable.SOUI::SDummyWnd.0
mov dword [esi + 0x1c], eax
jmp 0x1005f969
mov esi, edi
push edi
push dword [ebx + 0x2e8]
mov ecx, esi
mov byte [ebp - 4], 0xc
push 0xa
push 0xa
push edi
push edi
push 0x8000080
push SysReAllocString
push dword [ebp - 0x48]
mov dword [ebx + 0x2f8], esi
call fcn.100559c6
mov eax, dword [ebx + 0x2f8]
push 0xffffffffffffffec
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebx + 0x2f8]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0x2f8]
push 2
push edi
push edi
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [ebx + 0x2f8]
push 4
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x1005fa1d
test esi, 0x80000
jne 0x1005fa03
mov ecx, ebx
call fcn.10058e09
cmp al, 0xff
je 0x1005fa1d
push edi
push 0x80000
push edi
lea ecx, [ebx + 0x2dc]
call fcn.10055b44
push 2
mov ecx, ebx
call fcn.10058e09
movzx eax, al
push eax
push edi
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
lea esi, [ebx - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov ecx, dword [ebx + 0x3f8]
mov edx, dword [ebx + 0x3fc]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x1005fa43
test edx, edx
jg 0x1005fab0
or eax, 0xffffffff
jmp 0x1005fa4b
or eax, 0xffffffff
mov ecx, eax
mov dword [ebp - 0x24], eax
test edx, edx
cmovle edx, eax
mov eax, dword [ebx]
push edx
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x30], edx
push ecx
mov ecx, ebx
call dword [eax + 0xc8]
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
cmp eax, ecx
push esi
cmove eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
cmp eax, ecx
push edi
cmove eax, dword [ebp - 0x70]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xe8]
push 0x1005e4ee
push eax
call fcn.1005dc4a
add esp, 0x10
push eax
push 0x1fa9
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 0xe
call fcn.1009e999
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0xc
cmp ecx, dword [ebx + 0x3f8]
jne 0x1005fac0
cmp edx, dword [ebx + 0x3fc]
je 0x1005fadf
inc dword [esi + 0x408]
push 0x16
push edx
push ecx
push edi
push edi
push edi
push dword [ebx + 0x2e8]
call dword [sym.imp.USER32.dll_SetWindowPos]
dec dword [esi + 0x408]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x2e8]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call dword [eax + 0xc0]
mov ecx, dword [ebx + 0x38c]
xor eax, eax
inc eax
mov dword [ebx + 0x384], eax
mov dword [ebx + 0x380], eax
mov eax, dword [ecx]
call dword [eax + 0x68]
lea eax, [ebx - 8]
neg eax
lea ecx, [ebp - 0xb0]
sbb eax, eax
and eax, ebx
push eax
call fcn.10056e44
mov dword [ebp - 0xb0], 0x101f0e64
mov dword [ebp - 0xa8], 0x101f0e78
mov eax, dword [ebx]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0xf
call dword [eax + 0xa4]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.100a8d0c
jmp 0x1005fba3
lea ecx, [ebp - 0x28]
call fcn.100a8fd0
cmp eax, 1
je 0x1005fb86
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x28]
call dword [eax + 0x98]
jmp 0x1005fb8f
push edi
lea ecx, [ebp - 0x28]
call fcn.100ac189
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x28]
call fcn.100a96ce
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
call fcn.100a8184
test eax, eax
jne 0x1005fb6a
mov dword [ebp - 0xa8], vtable.SOUI::IObject.0
mov dword [ebp - 0xb0], vtable.SOUI::TObjRefImpl_struct_SOUI::IObjRef_.0
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff4
mov dword [ebp - 4], 0x10
cmp ecx, dword [0x102717b8]
je 0x1005fbdd
call fcn.1001f8b0
xor eax, eax
inc eax
call fcn.10043c90
ret 4