Function at 0x1004e470
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158aad
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x101a4494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
mov dword [ebp - 0x17c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x180], esi
lea eax, [ebp - 0x1b4]
push esi
push eax
mov byte [ebp - 0x175], 0
movups xmmword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x19c], esi
movq qword [ebp - 0x1a4], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1004e9b8
nop word [eax + eax]
cmp dword [ebp - 0x1b0], 0x10
jne 0x1004e983
push 0x98
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.1012e610
mov eax, dword [0x101ab098]
add esp, 0xc
test al, 1
jne 0x1004e52e
or eax, 1
mov dword [0x101ab094], 0
mov dword [0x101ab098], eax
mov byte [ebp - 0x176], 0
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 8
push eax
call fcn.100511be
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 9
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x176]
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x198]
push eax
push 0x1004dc50
push 0x101ab094
call fcn.1004fca3
add esp, 0x10
test eax, eax
je 0x1004eb8f
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 0xa
push eax
call fcn.100511f8
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x10161a0c
add esp, 4
mov dword [ebp - 0x188], eax
or esi, 2
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x180], esi
mov dword [ebp - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x200], 0x48
call fcn.1000afa0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x1c0], 0
push 0x20
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x1c4], eax
call fcn.1000d470
cmp dword [ebp - 0x1c4], 0
mov word [ebp - 0x1bc], ax
jne 0x1004e633
mov eax, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x1fc]
push 0
or eax, 4
push eax
call fcn.1000bd20
mov eax, dword [ebp - 0x24c]
push 2
mov dword [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x250], eax
lea ecx, [ebp - 0x248]
call fcn.10008fe0
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 0x10
push 0x101ab09c
push eax
call fcn.100086f0
add esp, 8
cmp dword [0x101aa314], 0
mov dword [ebp - 4], 0x11
je 0x1004e70c
lea eax, [ebp - 0x24c]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x248]
push eax
call fcn.1000d2e0
or esi, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x184], esi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1004e70c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004e702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004ebaf
push edx
push ecx
call fcn.100f4a6f
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.10009fa0
cmp byte [ebp - 0x175], 0
mov dword [ebp - 4], 0xffffffff
jne 0x1004e99d
lea eax, [ebp - 0x58]
push eax
call fcn.10018980
add esp, 4
cmp dword [ebp - 0x44], 0x10
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 0x12
cmovae edi, dword [ebp - 0x58]
mov dword [ebp - 0x174], eax
test edi, edi
jne 0x1004e766
xor edx, edx
mov dword [ebp - 0x174], edx
jmp 0x1004e830
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e770
sub ecx, edx
lea eax, [ebp - 0x170]
push 0x80
push eax
lea eax, [ebp - 0x174]
lea esi, [ecx + 1]
push esi
push eax
mov dword [ebp - 0x180], esi
call fcn.1004dae0
add esp, 0x10
push esi
push dword [ebp - 0x174]
push esi
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x188], ecx
test eax, eax
jne 0x1004e822
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004e81c
push 0
push 0
push esi
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x170]
push 0x80
push eax
lea eax, [ebp - 0x174]
push esi
push eax
call fcn.1004dae0
add esp, 0x10
push esi
push dword [ebp - 0x174]
push dword [ebp - 0x180]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1004e822
mov ecx, dword [ebp - 0x188]
test ecx, ecx
jne 0x1004ebb4
mov edx, dword [ebp - 0x174]
mov ecx, edx
mov byte [ebp - 4], 0x13
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e850
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000bc10
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x15
cmp eax, ecx
je 0x1004e886
push eax
call fcn.10131ce1
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push str.ex1
push eax
call fcn.1004da20
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [ebp - 0x175], 1
cmp edx, 8
jb 0x1004e8dc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004e8d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004ebaf
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x1004e92e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004e924
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004ebaf
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1004e969
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004e95f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004ebaf
push edx
push ecx
call fcn.100f4a6f
add esp, 8
mov esi, dword [ebp - 0x184]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x1004e99d
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1004e4f0
push dword [ebp - 0x17c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x1ac]
push 0x98
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x176]
call fcn.1004e390
lea ecx, [ebp - 0x24c]
mov esi, eax
call fcn.100090f0
mov edi, eax
push esi
push edi
mov dword [ebp - 4], 0
call fcn.100086f0
mov esi, dword [ebp - 0x17c]
add esp, 8
mov ecx, edi
push esi
call fcn.10009d00
cmp dword [0x101aa314], 0
mov dword [ebp - 4], 1
je 0x1004ea67
lea eax, [ebp - 0x24c]
push eax
call fcn.10008a90
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x248]
push eax
call fcn.1000d2e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.100098e0
lea ecx, [ebp - 0x24c]
call fcn.10009fa0
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x3564
je 0x1004eb72
lea eax, [ebp - 0x28]
push eax
call fcn.10018980
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1004dfe0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ead0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1000bc10
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 5
cmp eax, ecx
je 0x1004eb06
push eax
call fcn.10131ce1
add esp, 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str.ex1
push eax
call fcn.1004da20
push 0x98
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.1012e610
add esp, 0x18
lea ecx, [ebp - 0x24c]
call fcn.100090f0
push str.not_self_quit_code
push eax
mov byte [ebp - 4], 7
call fcn.100086f0
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.10009a70
lea ecx, [ebp - 0x70]
call fcn.100098e0
lea ecx, [ebp - 0x40]
call fcn.100098e0
lea ecx, [ebp - 0x28]
call fcn.10009890
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f4dc3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xb
push eax
call fcn.10051219
add esp, 4
mov byte [ebp - 4], 9
test al, al
jne 0x1004ebd3
call fcn.1004fcbb
call fcn.10131c3f
push 0x80
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x174]
call fcn.100128a0
add esp, 0xc
call fcn.100184d0
sub esp, 8
lea eax, [ebp - 0x190]
mov ecx, esp
push eax
call fcn.10015050
call fcn.1001e290
int3