Function at 0x4036f0
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 0x5c68de
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 0x403760
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402780
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.00403330
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 0x4037bb
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.0040cb10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ccc0
test al, al
je 0x4039c4
lea eax, [ebp - 0xd0]
push eax
lea ecx, [edi + 0x398]
call fcn.00403a50
push ecx
push str.update_tab_ctrl
lea ecx, [edi + 4]
call fcn.00404010
push ecx
push str.update_msg_ctrl
lea ecx, [edi + 4]
mov dword [edi + 0x49c], eax
call fcn.00404010
sub esp, 8
mov dword [edi + 0x4a0], eax
lea ecx, [edi + 4]
call fcn.00404180
mov dword [edi + 0x498], eax
test eax, eax
je 0x403864
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.004042f0
sub esp, 8
mov dword [edi + 0x494], eax
lea ecx, [edi + 4]
call fcn.00404460
push 0x38c
mov dword [edi + 0x490], eax
call fcn.00439908
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 0x403935
push 0
jmp 0x403937
push 5
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push 0x10
call fcn.00439908
add esp, 4
mov dword [ebp - 0x194], eax
mov dword [eax], 0x403b70
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 0x404710
push 0
push 0
call fcn.00494e6f
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x19c], esi
test esi, esi
je 0x403a31
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 0x403a27
mov dword [edi + 0x38c], 1
lea ecx, [ebp - 0xd0]
call fcn.004033f0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x403a05
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4039fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a2c
push ecx
push edx
call fcn.00439938
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.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00499eda
call fcn.00494baa
push 6
mov dword [ebp - 0x198], 0
call fcn.004382cf
int3