Function at 0x4a4e40
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea edi, [esi + 0x9c]
mov dword [esp + 0x18], 1
mov ecx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
call fcn.004a9e20
test al, al
mov ecx, edi
je 0x4a4e7a
call fcn.004a9e30
inc eax
mov dword [esp + 0x18], eax
jmp 0x4a4e85
call fcn.004a9e50
mov ebp, eax
mov dword [esp + 0x10], ebp
mov al, byte [esi + 8]
test al, al
jne 0x4a50a4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a4e9c
mov edi, dword [esp + 0x14]
test ebp, ebp
jle 0x4a4f73
cmp ebp, 0x14
mov dword [esp + 0x1c], 0x14
lea eax, [esp + 0x10]
jl 0x4a4eb9
lea eax, [esp + 0x1c]
mov edi, dword [eax]
push edi
call ebx
mov al, byte [esi + 8]
sub ebp, edi
test al, al
mov dword [esp + 0x10], ebp
jne 0x4a4f6f
push 1
push 0
push 0
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esp + 0x24]
cmp eax, 0x100
ja 0x4a4f0e
je 0x4a4f2a
mov ecx, eax
sub ecx, 2
je 0x4a4f00
sub ecx, 0xe
je 0x4a4f00
sub ecx, 2
jne 0x4a4f37
push 1
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x205
ja 0x4a4f30
cmp eax, 0x204
jae 0x4a4f2a
cmp eax, 0x201
jb 0x4a4f37
cmp eax, 0x202
ja 0x4a4f37
mov byte [esi + 8], 1
jmp 0x4a4f64
cmp eax, 0x3b9
je 0x4a4f4f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x4a4f64
push 0
push 1
lea ecx, [esi + 0x14]
call fcn.004d58d0
push eax
call fcn.004e2bd0
add esp, 0xc
mov al, byte [esi + 8]
test al, al
je 0x4a4e98
mov edi, dword [esp + 0x14]
mov al, byte [esi + 8]
test al, al
jne 0x4a50a4
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esp + 0x24]
cmp eax, 0x100
ja 0x4a4fbd
je 0x4a4fd9
mov ecx, eax
sub ecx, 2
je 0x4a4faf
sub ecx, 0xe
je 0x4a4faf
sub ecx, 2
jne 0x4a4fe6
push 1
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x205
ja 0x4a4fdf
cmp eax, 0x204
jae 0x4a4fd9
cmp eax, 0x201
jb 0x4a4fe6
cmp eax, 0x202
ja 0x4a4fe6
mov byte [esi + 8], 1
jmp 0x4a5013
cmp eax, 0x3b9
je 0x4a4ffe
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x4a5013
push 0
push 1
lea ecx, [esi + 0x14]
call fcn.004d58d0
push eax
call fcn.004e2bd0
add esp, 0xc
mov al, byte [esi + 8]
test al, al
jne 0x4a50a4
mov ecx, edi
call fcn.004a9de0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4a508a
mov edi, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
xor eax, eax
cmp ecx, edx
jge 0x4a504a
mov ebx, dword [esi + 0xc]
lea edx, [ecx + ecx*8]
lea edx, [ebx + edx*4]
test edx, edx
je 0x4a504a
mov eax, dword [edx + 0x1c]
mov edx, dword [esi + 4]
lea ebx, [eax + 0x1e0]
inc edx
cmp edx, ebx
mov dword [esi + 4], edx
jl 0x4a5083
inc ecx
mov dword [esi], ecx
mov edx, dword [esi + 0x10]
cmp ecx, edx
jge 0x4a507f
mov edx, dword [esi + 0xc]
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
test ecx, ecx
je 0x4a507f
sub eax, dword [ecx + 0x1c]
add eax, 0x1e0
mov dword [esi + 4], eax
jmp 0x4a5083
mov byte [esi + 8], 1
dec edi
jne 0x4a502f
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.004a50b0
call fcn.004e7860
mov ecx, edi
call fcn.004a9df0
mov ecx, edi
call fcn.004a9e00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret