Function at 0x4aff57
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x64]
test ecx, ecx
jne 0x4b01ae
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
lea ecx, [eax*4 + 4]
push ecx
call fcn.0052fe32
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4affc2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
test eax, eax
je 0x4affc2
push 0x5fcd88
push 0x49
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 4
push edx
push 0x5fcdc4
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
lea edx, [ecx*4 + 4]
push edx
call fcn.0052fe32
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b0018
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
test ecx, ecx
je 0x4b0018
push 0x5fcdf8
push 0x4a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 4
push eax
push 0x5fce34
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
mov dword [ebp - 0xc], 0
jmp 0x4b002a
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x2c]
jg 0x4b0051
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4], 0
jmp 0x4b0021
mov dword [ebp - 0xc], 0
jmp 0x4b0063
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x50]
jge 0x4b009d
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + edx]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
add ecx, 1
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov edx, dword [eax + edx]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x4b005a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov dword [edx], 0
mov dword [ebp - 0xc], 1
jmp 0x4b00bb
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x2c]
jg 0x4b00ea
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
jmp 0x4b00b2
mov dword [ebp - 0xc], 1
jmp 0x4b00fc
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x34]
jg 0x4b018d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx*4 - 4]
mov dword [ebp - 0x14], edx
jmp 0x4b0126
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edx + eax*4]
jge 0x4b0188
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + edx]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x4b0186
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
add edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add edx, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
jmp 0x4b011d
jmp 0x4b00f3
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0052fd49
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.0052fd49
add esp, 4
mov eax, dword [ebp + 8]
mov word [eax + 0x64], 1
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x118]
test edx, edx
je 0x4b01c5
mov ax, 1
jmp 0x4b0396
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b0219
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
test eax, eax
je 0x4b0219
push 0x5fce68
push 0x6a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 4
push edx
push 0x5fcea4
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b026d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
add eax, 1
test eax, eax
je 0x4b026d
push 0x5fced8
push 0x6b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
add edx, 4
push edx
push 0x5fcf14
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
mov dword [ebp - 0xc], 1
jmp 0x4b027f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x34]
jg 0x4b02ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4 - 4]
mov dword [ebp - 0x14], eax
jmp 0x4b02a5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp edx, dword [eax + ecx*4]
jge 0x4b02fa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
add edx, 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + edx]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
add ecx, 1
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov edx, dword [eax + edx]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x4b029c
jmp 0x4b0276
mov dword [ebp - 0xc], 1
jmp 0x4b0311
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x34]
jg 0x4b036e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp dword [edx + ecx*4], 0
jne 0x4b036c
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x44]
test ecx, ecx
je 0x4b0356
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
add ecx, edx
push ecx
push 0x5fcf48
push 0x600c10
call fcn.00530919
add esp, 0xc
jmp 0x4b036c
mov edx, dword [ebp - 0xc]
push edx
push 0x5fcf7c
push 0x600c10
call fcn.00530919
add esp, 0xc
jmp 0x4b0308
mov eax, dword [ebp - 4]
push eax
call fcn.0052fd49
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0052fd49
add esp, 4
mov edx, dword [ebp + 8]
mov word [edx + 0x118], 1
mov ax, 1
mov esp, ebp
pop ebp
ret