Function at 0x405650
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b9ee
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea ecx, [edi + 0x394]
call dword [sym.imp.utilities.dll_public:_wchar_t____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::GetBuffer_int_]
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4056c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403d70
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.00405270
mov eax, ecx
push eax
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x1a0], esp
mov dword [ebp - 0x194], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x47c]
test ecx, ecx
je 0x40571e
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.004136f0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004137a0
test al, al
je 0x405920
lea eax, [ebp - 0xd0]
push eax
lea ecx, [edi + 0x398]
call fcn.004059a0
push ecx
push str.update_tab_ctrl
lea ecx, [edi + 4]
call fcn.00406460
push ecx
push str.update_msg_ctrl
lea ecx, [edi + 4]
mov dword [edi + 0x49c], eax
call fcn.00406460
sub esp, 8
mov dword [edi + 0x4a0], eax
lea ecx, [edi + 4]
call fcn.004065d0
mov dword [edi + 0x498], eax
test eax, eax
je 0x4057c0
push 0
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x190], 0xbc
push ecx
push 1
push 0x447
mov ecx, eax
mov byte [ebp - 0xe6], 1
mov dword [ebp - 0x18c], 0x100
call dword [sym.imp.soui.dll_public:_long_int___thiscall_SOUI::SWindow::SSendMessage_unsigned_int__unsigned_int__long_int__int__]
sub esp, 8
lea ecx, [edi + 4]
call fcn.00406740
sub esp, 8
mov dword [edi + 0x494], eax
lea ecx, [edi + 4]
call fcn.004068b0
push 0x38c
mov dword [edi + 0x490], eax
call fcn.004815fa
mov esi, eax
add esp, 4
mov dword [ebp - 0x194], esi
push 0x720d50
mov ecx, esi
mov byte [ebp - 4], 4
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostWnd::constructor_wchar_t_const__]
push 0
push 0
push 0
push 0
push 0x80020
mov dword [esi], vtable.SOUI::SLoading.2.0
mov ecx, esi
mov dword [esi + 4], vtable.SOUI::SLoading.1.0
mov dword [esi + 8], vtable.SOUI::SLoading.0
mov dword [esi + 0xc], vtable.SOUI::SLoading.4.0
mov dword [esi + method.SOUI::SLoading.3.virtual_0], vtable.SOUI::SLoading.3.0
mov byte [ebp - 4], 1
push SysReAllocString
push dword [edi + 0x248]
mov dword [edi + 0x390], esi
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____unsigned_long_int__unsigned_long_int__int__int__int__int_]
mov ecx, dword [edi + 0x390]
push 0
push 0
push 0x110
lea eax, [ecx + 0x23c]
neg ecx
sbb ecx, ecx
and ecx, eax
call dword [sym.imp.soui.dll_public:_long_int___thiscall_SOUI::CSimpleWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
mov ecx, dword [edi + 0x390]
add ecx, 0x23c
cmp dword [edi + 0x41c], 2
jne 0x405891
push 0
jmp 0x405893
push 5
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push 0x10
call fcn.004815fa
add esp, 4
mov dword [ebp - 0x194], eax
mov dword [eax], 0x405bd0
mov dword [eax + 4], 0
mov dword [eax + 8], edi
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x4072e0
push 0
push 0
call fcn.004ee0e5
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x19c], esi
test esi, esi
je 0x40598d
mov edx, dword [edi + 0x454]
mov ecx, dword [edi + 0x450]
mov eax, dword [ebp - 0x198]
mov dword [edi + 0x450], esi
mov dword [edi + 0x454], eax
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], edx
test edx, edx
jne 0x405983
mov dword [edi + 0x38c], 1
lea ecx, [ebp - 0xd0]
call fcn.00405350
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x405961
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405957
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405988
push ecx
push edx
call fcn.0048162a
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00507ca5
call fcn.004ed7be
push 6
mov dword [ebp - 0x198], 0
call fcn.00462c7f
int3