Function at 0x4033e0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push edi
lea eax, [ebp - 0x220]
push eax
push 0xfffffffffffffff5
mov esi, ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea eax, [ebp - 0x23c]
push eax
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
push 0xfffffffffffffff5
mov dword [ebp - 0x230], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
xor eax, eax
mov word [ebp - 0x224], ax
mov ax, word [ebp - 0x214]
mov word [ebp - 0x222], ax
push dword [ebp - 0x224]
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 2
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0041e930
xor ebx, ebx
add esp, 0xc
cmp dword [esi + 0x2dc], ebx
jbe 0x4034fb
lea edi, [esi + 0x324]
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034c0
lea eax, [edi - 0x40]
push eax
sub ecx, edx
push edi
mov eax, 0x200
sub eax, ecx
push str._s__s__
push eax
lea eax, [ebp - 0x208]
add eax, ecx
push eax
call fcn.00415167
inc ebx
add esp, 0x14
add edi, 0xa8
cmp ebx, dword [esi + 0x2dc]
jb 0x4034b1
lea ecx, [ebp - 0x208]
mov byte [ebp - 9], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403508
movsx eax, word [ebp - 0x216]
sub ecx, edx
movsx edx, word [ebp - 0x212]
sub edx, eax
cmp ecx, edx
jae 0x40353c
sub edx, ecx
dec edx
push edx
lea eax, [ebp - 0x208]
add eax, ecx
push 0x20
push eax
call fcn.0041e930
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x4341ac
push esi
mov byte [ebp - 9], 0
call fcn.00401a80
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0041e930
add esp, 0x18
lea eax, [esi + 0xaae8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0xab04], edi
jbe 0x4036d5
mov ecx, dword [esi + 0xab04]
xor eax, eax
cmp edi, ecx
jae 0x403598
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
cmp word [eax], 0
je 0x4036c8
xor eax, eax
cmp edi, ecx
jae 0x4035b1
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
push 0x5c
push eax
call fcn.004155f4
add esp, 8
test eax, eax
je 0x4035e3
xor eax, eax
cmp edi, dword [esi + 0xab04]
jae 0x4035d3
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
push 0x5c
push eax
call fcn.004155f4
add esp, 8
add eax, 2
jmp 0x4035fe
mov dword [ebp - 0x224], 0
cmp edi, dword [esi + 0xab04]
jae 0x403604
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x224], eax
lea ebx, [ebp - 0x208]
lea ecx, [ebx + 1]
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403610
sub ebx, ecx
mov ecx, dword [esi + 0xab04]
xor edx, edx
cmp edi, ecx
jae 0x40362e
mov eax, dword [esi + 0xab00]
mov edx, dword [eax + edi*4]
mov dword [ebp - 0x22c], 0
cmp edi, ecx
jae 0x40364b
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0
cmp edi, ecx
jae 0x403668
mov eax, dword [esi + 0xab00]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x228], eax
push 0
push 0x64
push dword [edx + 0x424]
push dword [edx + 0x420]
call fcn.0041e850
mov ecx, dword [ebp - 0x22c]
push dword [ecx + 0x41c]
push dword [ecx + 0x418]
push edx
push eax
call fcn.0041dd10
push edx
push eax
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
push dword [eax + 0x410]
mov eax, 0x200
sub eax, ebx
push str.D:__u__S__d___
push eax
lea eax, [ebp - 0x208]
add eax, ebx
push eax
call fcn.00415167
add esp, 0x1c
inc edi
cmp edi, dword [esi + 0xab04]
jb 0x403583
lea eax, [esi + 0xaae8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0xab10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0xab2c], edi
jbe 0x40386b
lea ecx, [ecx]
mov ecx, dword [esi + 0xab2c]
xor eax, eax
cmp edi, ecx
jae 0x403715
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
cmp word [eax], 0
je 0x40385e
xor eax, eax
cmp edi, ecx
jae 0x40372e
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x428], 0
jne 0x40385e
xor eax, eax
cmp edi, ecx
jae 0x40374a
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
push 0x5c
push eax
call fcn.004155f4
add esp, 8
test eax, eax
je 0x40377c
xor eax, eax
cmp edi, dword [esi + 0xab2c]
jae 0x40376c
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
push 0x5c
push eax
call fcn.004155f4
add esp, 8
add eax, 2
jmp 0x403797
mov dword [ebp - 0x224], 0
cmp edi, dword [esi + 0xab2c]
jae 0x40379d
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x224], eax
lea ebx, [ebp - 0x208]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4037a6
sub ebx, ecx
mov ecx, dword [esi + 0xab2c]
xor edx, edx
cmp edi, ecx
jae 0x4037c4
mov eax, dword [esi + 0xab28]
mov edx, dword [eax + edi*4]
mov dword [ebp - 0x228], 0
cmp edi, ecx
jae 0x4037e1
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], 0
cmp edi, ecx
jae 0x4037fe
mov eax, dword [esi + 0xab28]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x22c], eax
push 0
push 0x64
push dword [edx + 0x424]
push dword [edx + 0x420]
call fcn.0041e850
mov ecx, dword [ebp - 0x228]
push dword [ecx + 0x41c]
push dword [ecx + 0x418]
push edx
push eax
call fcn.0041dd10
push edx
push eax
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
push dword [eax + 0x410]
mov eax, 0x200
sub eax, ebx
push str.U:__u__S__d___
push eax
lea eax, [ebp - 0x208]
add eax, ebx
push eax
call fcn.00415167
add esp, 0x1c
inc edi
cmp edi, dword [esi + 0xab2c]
jb 0x403700
lea eax, [esi + 0xab10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x208], 0
je 0x4038dd
lea ecx, [ebp - 0x208]
mov byte [ebp - 9], 0
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403890
movsx eax, word [ebp - 0x216]
sub ecx, edx
movsx edx, word [ebp - 0x212]
sub edx, eax
cmp ecx, edx
jae 0x4038c4
sub edx, ecx
dec edx
push edx
lea eax, [ebp - 0x208]
add eax, ecx
push 0x20
push eax
call fcn.0041e930
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x4341dc
push esi
mov byte [ebp - 9], 0
call fcn.00401a80
add esp, 0xc
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push dword [ebp - 0x21c]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea eax, [ebp - 0x23c]
push eax
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret