Function at 0x40e100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [eax + 8]
mov edx, dword [edx + 0x6c]
mov ecx, dword [ebx + 0x70]
cmp dword [eax + 0xc], edx
jne 0x40e123
cmp dword [eax + 0x10], ecx
je 0x40e133
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._change_screen_buffer_size
mov edx, dword [ebx + 0x64]
mov eax, dword [esi + 0x84]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x68]
mov eax, dword [esi + 0x84]
mov dword [eax + 0x2c], edx
mov eax, dword [ebx + 0x80]
mov edx, dword [esi + 0x94]
mov dword [esi + 0xa0], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x9c], eax
mov edi, dword [ebx + 0x58]
test edi, edi
je 0x40e175
cmp edx, edi
jne 0x40e360
mov edx, dword [esi + 4]
mov edi, dword [ebx + 0x60]
mov eax, edx
and eax, 0xffffffdf
test edi, edi
je 0x40e188
mov eax, edx
or al, 0xa0
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
lea edi, [ebx + 0x8c]
mov edx, dword [ebx + 0x48]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 8]
mov edx, dword [ebx + 0x4c]
mov dword [eax + 0x18], edx
mov eax, dword [esi + 8]
mov edx, dword [ebx + 0x50]
mov word [eax + 0x24], dx
mov eax, dword [esi + 8]
mov edx, dword [ebx + 0x54]
mov word [eax + 0x26], dx
mov eax, dword [esi + 8]
movsx edx, word [ebx + 0x7c]
mov dword [eax + 0x74], edx
mov eax, dword [esi + 8]
movsx edx, word [ebx + 0x7e]
mov dword [eax + 0x78], edx
mov ecx, dword [ebx + 0x74]
movsx edx, word [ebx + 0x7c]
mov eax, dword [esi + 8]
lea edx, [ecx + edx - 1]
mov dword [eax + 0x7c], edx
mov ecx, dword [ebx + 0x78]
movsx edx, word [ebx + 0x7e]
mov eax, dword [esi + 8]
lea edx, [ecx + edx - 1]
mov dword [eax + 0x80], edx
mov edx, dword [esi + 8]
mov ecx, dword [ebx]
lea eax, [edx + 0x34]
mov dword [edx + 0x34], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ebx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ebx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ebx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ebx + 0x38]
mov dword [eax + 0x38], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 8]
movsx edx, word [eax + 0x84]
cmp edx, dword [ebx + 0x40]
jne 0x40e448
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x10], ecx
movsx ecx, word [eax + 0x86]
mov dword [esp + 0xc], edx
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
cmp ecx, dword [esp + 0x10]
je 0x40e468
mov dword [esp], edi
call edx
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x40e31e
mov ecx, dword [esp + 0x10]
add eax, eax
mov edx, 0x3e
movq xmm0, qword [0x4155c0]
cmp eax, 0x3e
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
cmova eax, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
movq qword [esp + 0x28], xmm0
cmp eax, 4
jb 0x40e340
mov edx, dword [edi + eax - 4]
lea ecx, [eax - 1]
mov dword [esp + eax + 0x2c], edx
cmp ecx, 4
jb 0x40e30a
and ecx, 0xfffffffc
xor edx, edx
mov ebx, dword [edi + edx]
mov dword [esp + edx + 0x30], ebx
add edx, 4
cmp edx, ecx
jb 0x40e2fc
shr eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x30], dx
lea edx, [esp + 0x14]
mov eax, esi
call sym._set_console_font
mov eax, esi
call sym._update_window
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym._notify_screen_buffer_size
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x40e30a
movzx edx, byte [ebx + 0x8c]
mov byte [esp + 0x30], dl
test al, 2
je 0x40e30a
movzx edx, word [edi + eax - 2]
mov word [esp + eax + 0x2e], dx
jmp 0x40e30a
lea eax, [edi*4]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x10], edx
call sym._calloc
mov dword [esp + 0xc], eax
test eax, eax
je 0x40e175
mov ecx, dword [esi + 0x98]
mov edx, dword [esp + 0x10]
cmp edi, ecx
jb 0x40e4c0
mov dword [esp + 0x10], 0
xor eax, eax
cmp ecx, dword [esp + 0x10]
jbe 0x40e3e9
mov ecx, dword [esp + 0xc]
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [esp + 0x10]
mov edi, ecx
lea esi, [esi]
mov ecx, dword [esi + 0x90]
lea edx, [ecx + edx*4]
mov ecx, dword [edx]
mov dword [edi + eax*4], ecx
add eax, 1
mov dword [edx], 0
mov ecx, dword [esi + 0x98]
mov edx, eax
cmp ecx, eax
ja 0x40e3c0
mov edx, dword [esi + 0x94]
sub ecx, dword [esp + 0x10]
xor edi, edi
mov dword [esi + 0x98], ecx
test edx, edx
je 0x40e41d
lea esi, [esi]
mov eax, dword [esi + 0x90]
mov eax, dword [eax + edi*4]
add edi, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp dword [esi + 0x94], edi
ja 0x40e400
mov eax, dword [esi + 0x90]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x90], eax
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x94], eax
jmp 0x40e175
mov eax, dword [ebx + 0x88]
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x10], eax
jmp 0x40e290
movsx ecx, word [eax + 0x88]
cmp ecx, dword [esp + 0xc]
jne 0x40e290
movsx ecx, word [eax + 0x8a]
cmp ecx, dword [ebx + 0x84]
jne 0x40e290
mov eax, dword [eax + 0x90]
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 0x10], eax
call edx
cmp dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
je 0x40e4cd
mov eax, dword [ebx + 0x88]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x10], eax
jmp 0x40e290
mov eax, ecx
sub eax, edi
mov dword [esp + 0x10], eax
jmp 0x40e3a3
mov ecx, dword [esi + 8]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x90]
mov dword [esp + 4], edi
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x8c]
mov dword [esp], eax
call sym._memcmp
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x40e4a9
jmp 0x40e31e