Function at 0x45bfea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, eax
movzx eax, byte [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 4], edi
cmp edi, eax
je 0x45c2f9
xor ecx, ecx
cmp dword [ebp + 0x20], eax
setge cl
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x1c], eax
jne 0x45c034
cmp ecx, eax
jne 0x45c034
push dword [ebp + 0x24]
mov eax, dword [ebp + 0xc]
call fcn.00459023
pop ecx
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x45c040
mov dword [ebp - 8], eax
jmp 0x45c048
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
cmp dword [ebx + 8], 0
jne 0x45c05e
mov ecx, dword [esi + 0x48]
inc ecx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0xc], ecx
add dword [esi + 0x48], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], edi
test eax, eax
jle 0x45c096
and dword [ebp - 0x14], 0
test eax, eax
jle 0x45c0ba
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edi]
push ecx
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0x1c
pop eax
call fcn.004561b8
add esp, 0xc
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x18]
jl 0x45c070
jmp 0x45c0ba
cmp dword [ebp - 0x18], 3
je 0x45c0ba
mov eax, esi
call fcn.00450946
xor eax, eax
cmp dword [ebp - 0x18], 5
mov ecx, edi
sete al
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.00457741
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x45c0ec
push edi
push dword [ebp - 8]
mov edi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.0045bf96
add esp, 0x10
cmp dword [ebp + 0x1c], 0
jne 0x45c0e9
push dword [ebp + 0x24]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
call fcn.00459023
pop ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx - 1]
cmp eax, 9
ja case.0x45c0fb.4
jmp dword [eax*4 + 0x45c2fe]
mov eax, esi
call fcn.004509cb
mov ecx, dword [ebp - 4]
mov ebx, eax
push ebx
push dword [ebp - 8]
push edi
push 0x1e
pop eax
call fcn.004561b8
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
push 0x46
pop eax
call fcn.0045624d
add esp, 0x14
jmp 0x45c299
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push edi
push dword [ebp - 0xc]
push 0x47
pop eax
call fcn.004561b8
add esp, 0xc
jmp case.0x45c0fb.4
mov eax, esi
call fcn.004509cb
mov ecx, dword [ebp - 4]
mov ebx, eax
push ebx
push dword [ebp - 8]
push edi
push 0x1e
pop eax
call fcn.004561b8
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x45c183
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push esi
call fcn.00458f10
add esp, 0x10
jmp 0x45c299
mov eax, esi
call fcn.004509cb
mov ecx, dword [ebp - 4]
mov edi, eax
push edi
push dword [ebp - 0xc]
push 0x36
pop eax
call fcn.0045624d
mov ecx, dword [ebp - 4]
push edi
push ebx
push dword [ebp - 0xc]
push 0x37
pop eax
call fcn.004561b8
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dl, 8
call fcn.0044f9e9
mov edx, edi
mov eax, esi
call fcn.004509e6
jmp 0x45c299
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
mov bl, byte [ebx + 1]
mov eax, dword [eax]
add edi, 5
call fcn.0045702c
cmp dword [ebp + 0x1c], 0
mov byte [edi], al
je 0x45c1fb
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push esi
call fcn.00458f10
add esp, 0x10
jmp case.0x45c0fb.4
mov eax, esi
call fcn.004509cb
mov esi, dword [ebp - 0x10]
push 1
push edi
mov ebx, eax
push ebx
push 1
push esi
push dword [ebp - 4]
push 0x1e
pop eax
call fcn.0045aa2d
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
call fcn.00450964
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
push 0x46
pop eax
call fcn.0045624d
mov eax, dword [ebp + 8]
add esp, 0x20
jmp 0x45c29b
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 1
push 7
pop eax
call fcn.0045624d
pop ecx
jmp 0x45c267
cmp dword [ebp + 0x1c], 0
je 0x45c257
push edi
jmp 0x45c1e7
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
mov eax, esi
call fcn.004575c7
pop ecx
jmp case.0x45c0fb.4
cmp dword [ebp + 0x1c], 0
je 0x45c2a4
mov eax, esi
call fcn.004509cb
mov ecx, dword [ebp - 4]
mov ebx, eax
push ebx
push dword [ebp - 8]
push edi
push 0x1e
pop eax
call fcn.004561b8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push esi
call fcn.00458f10
add esp, 0x1c
mov eax, esi
mov edx, ebx
call fcn.004509e6
jmp case.0x45c0fb.4
cmp ecx, 0xa
mov ecx, dword [ebp - 4]
jne 0x45c2ba
push dword [ebx + 4]
push 4
pop eax
call fcn.0045623c
pop ecx
jmp 0x45c2db
push dword [ebp - 8]
push edi
push 0x10
pop eax
call fcn.0045624d
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov esi, edi
call fcn.00450964
cmp dword [ebp + 0x1c], 0
jne 0x45c2f9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x45c2f9
mov ecx, dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0x28]
push eax
push 0x73
pop eax
call fcn.004561b8
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret