Function at 0x412890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4286f4
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x7c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ecx, edi
mov dword [ebp - 4], 0
call sub.mfc140u.dll_CDialog::OnInitDialog
call fcn.0041f2f0
test eax, eax
jne 0x4128e6
mov byte [edi + 0x2c3bc], al
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.mfc140u.dll_CWnd::FromHandle
push eax
mov ecx, edi
call sub.mfc140u.dll_CWnd::CenterWindow
call sub.mfc140u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x7c]
push 0
push 0
push 0
mov eax, dword [eax + 0x20]
push 0
mov dword [0x52541c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xf8], eax
lea ecx, [edi + 0xf8]
test eax, eax
je 0x41294c
lea eax, [ebp - 0x88]
push eax
push 0
push ecx
push 0x411760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xfc], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push dword [edi + 0x20]
call ebx
push eax
call sub.mfc140u.dll_CGdiObject::FromHandle
mov dword [edi + 0xf0], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x84], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 5
call sub.mfc140u.dll_AfxGetModuleState
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x84]
mov eax, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], 0
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.0041e2b0
add esp, 0x1c
test al, al
je 0x412a75
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x78]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
push 0x42ec90
push 0x42ec94
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push 0x2e
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
push dword [eax]
lea ecx, [edi + 0x2c358]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [edi + 0x2c3b8]
push 0x42dc10
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [0x5254b0]
mov ecx, edi
mov dword [edi + 0xf4], eax
call fcn.00410310
test eax, eax
je 0x412aa1
push 0
push 0x10
push dword [edi + 0x2c3ac]
call sub.mfc140u.dll_AfxMessageBox
xor esi, esi
jmp 0x412dca
push ecx
lea eax, [edi + 0x2c350]
mov dword [ebp - 0x74], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
push ecx
lea eax, [edi + 0x2c34c]
mov byte [ebp - 4], 7
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
push 0x416
push 0x417
push 0x413
push 0
push edi
lea ecx, [edi + 0xac]
mov byte [ebp - 4], 5
call fcn.0040a130
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.mfc140u.dll_CMenu::FromHandle
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x412b3a
push 0x65
lea ecx, [ebp - 0x7c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx - 0xc], 0
je 0x412b3a
push 0
push 0
push 0x800
push dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
call esi
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
push 0x10
push 0
push dword [eax + 4]
call esi
push dword [edi + 0xa8]
push 1
push 0x80
push dword [edi + 0x20]
call ebx
push dword [edi + 0xa8]
push 0
push 0x80
push dword [edi + 0x20]
call ebx
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [edi + 0x2c3c0]
push eax
push 2
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x412b8e
xor esi, esi
jmp 0x412dca
lea ecx, [edi + 0x2c3d8]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x412bac
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004028a0
lea esi, [edi + 0x2c3f0]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x412bcc
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004028a0
cmp dword [esi + 0x14], 0x10
mov ecx, esi
mov dword [ebp - 0x74], esi
jb 0x412bdc
mov ecx, dword [esi]
mov dword [ebp - 0x74], ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412c36
push eax
push 0x2c
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x412c36
sub eax, dword [ebp - 0x74]
cmp eax, 0xffffffff
je 0x412c36
cmp dword [esi + 0x14], 0x10
mov ecx, esi
mov dword [ebp - 0x74], esi
jb 0x412c0b
mov ecx, dword [esi]
mov dword [ebp - 0x74], ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412c27
push eax
push 0x2c
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x412c27
sub eax, dword [ebp - 0x74]
jmp 0x412c2a
or eax, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x412c32
mov esi, dword [esi]
mov byte [esi + eax], 0
mov ecx, edi
call fcn.0040df00
mov ecx, edi
call fcn.0040e0e0
mov ecx, edi
call fcn.0040f740
push 0
push 0
push 0x130b
push dword [edi + 0x2b8c8]
call ebx
push 0
push eax
push 0x1333
push dword [edi + 0x2b8c8]
call ebx
mov eax, dword [edi + 0x2bd28]
push 0
test eax, eax
js 0x412c90
push eax
push 0x130c
push dword [edi + 0x2b8c8]
call ebx
push 1
push dword [edi + 0x2bd28]
jmp 0x412ca3
push 0
push 0x130c
push dword [edi + 0x2b8c8]
call ebx
push 1
push 0
push 0x1333
push dword [edi + 0x2b8c8]
call ebx
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
push 0
call fcn.00413c60
imul eax, dword [edi + 0x2bd28], 0x1074
lea ecx, [edi + 0x100]
add ecx, eax
call fcn.00417b00
test eax, eax
jne 0x412d02
push eax
lea ecx, [edi + 0x15ab8]
call fcn.0041afd0
push 0
push 0
push 0xf1
push dword [edi + 0x2c1d0]
call ebx
push 0
lea ecx, [edi + 0x2c1b0]
call sub.mfc140u.dll_CWnd::EnableWindow
push 0
push 0
push 0x130c
push dword [edi + 0x2bdd0]
call ebx
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
push 0
call fcn.004139b0
push dword [edi + 0x2b948]
mov esi, dword [sym.imp.USER32.dll_BringWindowToTop]
call esi
push dword [edi + 0x2be50]
call esi
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [edi + 0x2b698]
test eax, eax
je 0x412d57
mov eax, dword [eax + 0x20]
mov esi, dword [sym.imp.UxTheme.dll_SetWindowTheme]
push 0x42d99c
push 0x42d99c
push eax
call esi
lea eax, [edi + 0x2b8a8]
test eax, eax
je 0x412d77
mov eax, dword [eax + 0x20]
push 0x42d99c
push 0x42d99c
push eax
call esi
lea eax, [edi + 0x2bdb0]
test eax, eax
je 0x412d91
mov eax, dword [eax + 0x20]
push 0x42d99c
push 0x42d99c
push eax
call esi
mov esi, dword [edi + 0x2c35c]
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.mfc140u.dll_CMenu::FromHandle
push esi
push 0x10
push 0
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov esi, 1
lea ecx, [ebp - 0x78]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x412e09
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412dff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x412e51
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412e47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x412e99
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412e8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x412ee1
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412ed7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412ed7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret