Function at 0x403750
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 0x5c623e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x6540c0]
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 0x4037c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004027e0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.00403390
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 0x40381b
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c700
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040c8b0
test al, al
je 0x403a24
lea eax, [ebp - 0xd0]
push eax
lea ecx, [edi + 0x398]
call fcn.00403ab0
push ecx
push str.update_tab_ctrl
lea ecx, [edi + 4]
call fcn.004040a0
push ecx
push str.update_msg_ctrl
lea ecx, [edi + 4]
mov dword [edi + 0x49c], eax
call fcn.004040a0
sub esp, 8
mov dword [edi + 0x4a0], eax
lea ecx, [edi + 4]
call fcn.00404210
mov dword [edi + 0x498], eax
test eax, eax
je 0x4038c4
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.00404380
sub esp, 8
mov dword [edi + 0x494], eax
lea ecx, [edi + 4]
call fcn.004044f0
push 0x38c
mov dword [edi + 0x490], eax
call fcn.00439298
mov esi, eax
add esp, 4
mov dword [ebp - 0x194], esi
push 0x646408
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 bind
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 0x403995
push 0
jmp 0x403997
push 5
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push 0x10
call fcn.00439298
add esp, 4
mov dword [ebp - 0x194], eax
mov dword [eax], 0x403bd0
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 0x4047a0
push 0
push 0
call fcn.004947ef
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x19c], esi
test esi, esi
je 0x403a91
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 0x403a87
mov dword [edi + 0x38c], 1
lea ecx, [ebp - 0xd0]
call fcn.00403450
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x403a65
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a8c
push ecx
push edx
call fcn.004392c8
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.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0049985a
call fcn.0049452a
push 6
mov dword [ebp - 0x198], 0
call fcn.00437c5c
int3