Function at 0x81546b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10006020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
jne 0x8154b0
push 0xffffffffffffff9a
jmp 0x81572b
cmp dword [ebp + 0x28], 0
je 0x8154bc
cmp dword [ebp + 0x28], 8
jne 0x8154a9
cmp dword [edi + 0x2c], 1
jne 0x8154d1
push edi
call fcn.00815275
test eax, eax
pop ecx
jne 0x81593d
cmp dword [ebp - 0x1c], 0
jne 0x8154de
mov dword [ebp - 0x1c], 0x100051e0
test ebx, ebx
jne 0x8154e7
and dword [ebp - 0x24], ebx
jmp 0x8154f1
push ebx
call fcn.008159e7
pop ecx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
call fcn.008159e7
test esi, esi
pop ecx
mov dword [ebp - 0x14], eax
jne 0x815509
and dword [edi + 0x4088], esi
jmp 0x81551d
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x815517
mov edx, esi
call fcn.00814ac0
mov dword [edi + 0x4088], eax
mov eax, dword [ebp + 0x2c]
and dword [edi + 0x7c], 0
cmp eax, 8
push 2
pop ebx
je 0x815531
cmp eax, 9
jne 0x815534
mov dword [edi + 0x7c], ebx
cmp eax, ebx
push 4
pop esi
jne 0x81553e
or dword [edi + 0x7c], esi
cmp eax, 1
jne 0x815547
or dword [edi + 0x7c], 6
xor eax, eax
cmp dword [ebp - 0x28], eax
je 0x815552
or dword [edi + 0x7c], 1
push dword [edi + 0x20]
mov ecx, dword [ebp + 0x28]
push dword [edi + 0x1c]
mov dword [edi + 0x408c], eax
mov dword [edi + 0x4090], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], eax
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x70], eax
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx + 0x2e]
push eax
mov dword [edi + 0x78], eax
call dword [0x10005048]
add esp, 0xc
mov ecx, esi
mov edx, 0x2014b50
mov dword [edi + 0x74], eax
call fcn.00814a91
mov eax, dword [edi + 0x74]
add eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
push 0x14
add eax, 6
mov ecx, ebx
pop edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [edi + 0x7c]
add eax, 8
mov ecx, ebx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [edi + 0x80]
add eax, 0xa
mov ecx, ebx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [edi + 0x4088]
add eax, 0xc
mov ecx, esi
call fcn.00814a91
mov eax, dword [edi + 0x74]
add eax, 0x10
mov ecx, esi
xor edx, edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
add eax, 0x14
mov ecx, esi
xor edx, edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
add eax, 0x18
mov ecx, esi
xor edx, edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x14]
add eax, 0x1c
mov ecx, ebx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x20]
add eax, 0x1e
mov ecx, ebx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x24]
add eax, 0x20
mov ecx, ebx
call fcn.00814a91
mov eax, dword [edi + 0x74]
add eax, 0x22
mov ecx, ebx
xor edx, edx
call fcn.00814a91
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x18]
add eax, 0x24
test edx, edx
mov ecx, ebx
jne 0x815685
call fcn.00814a91
xor edx, edx
jmp 0x815693
mov edx, dword [edx + 0x1c]
call fcn.00814a91
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x20]
mov eax, dword [edi + 0x74]
add eax, 0x26
mov ecx, esi
call fcn.00814a91
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
sub edx, dword [edi + 0x40ac]
add eax, 0x2a
mov ecx, esi
call fcn.00814a91
xor eax, eax
cmp dword [ebp - 0x14], eax
jbe 0x8156d0
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + eax]
mov ecx, dword [edi + 0x74]
mov byte [ecx + eax + 0x2e], dl
inc eax
cmp eax, dword [ebp - 0x14]
jb 0x8156bd
xor eax, eax
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
jbe 0x8156f8
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 0x1c]
add ecx, eax
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x14]
mov byte [ecx + edx + 0x2e], al
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jb 0x8156da
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
jbe 0x815723
mov ecx, dword [edi + 0x74]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
add ecx, eax
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
mov byte [ecx + edx + 0x2e], al
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
jb 0x815702
cmp dword [edi + 0x74], 0
jne 0x815731
push 0xffffffffffffff98
pop eax
jmp 0x81593d
push dword [edi + 0x20]
mov ecx, 0x4034b50
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov esi, ebx
push 0x14
pop ecx
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov ecx, dword [edi + 0x7c]
mov esi, ebx
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov ecx, dword [edi + 0x80]
mov esi, ebx
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov ecx, dword [edi + 0x4088]
push 4
pop esi
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov ecx, dword [ebp - 0x14]
mov esi, ebx
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
push dword [edi + 0x20]
mov esi, ebx
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
mov edx, edi
call fcn.00814a40
mov esi, eax
test esi, esi
pop ecx
jne 0x815865
cmp dword [ebp - 0x14], eax
jbe 0x81584a
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x815862
test ebx, ebx
jbe 0x815865
push ebx
push dword [ebp - 0x30]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, ebx
je 0x815865
or esi, 0xffffffff
xor eax, eax
cmp esi, eax
lea ecx, [edi + 0x88]
mov dword [edi + 0x34], eax
mov dword [edi + 0x40], 0x4000
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
mov dword [edi + 0x44], eax
jne 0x8158d4
cmp dword [edi + 0x80], 8
jne 0x8158d4
cmp dword [edi + 0x84], eax
jne 0x8158d4
cmp dword [ebp + 0x34], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
jle 0x8158a6
neg dword [ebp + 0x34]
push 0x38
push 0x10005184
push dword [ebp + 0x3c]
lea eax, [edi + 0x30]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 8
push dword [ebp + 0x2c]
push eax
call fcn.008159db
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x8158d4
mov dword [edi + 0x68], 1
and dword [edi + 0x40a4], 0
test esi, esi
jne 0x81593b
cmp dword [ebp - 0x28], esi
je 0x815934
mov dword [edi + 0x4090], 1
call fcn.008159c3
push dword [ebp + 0x44]
lea ecx, [ebp - 0x10]
push 0xc
push ecx
mov ecx, dword [ebp - 0x28]
lea ebx, [edi + 0x4094]
mov edx, eax
mov dword [edi + 0x40a0], eax
call fcn.0081480e
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x20]
mov dword [edi + 0x40a4], ebx
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x1c
cmp eax, ebx
je 0x815934
or esi, 0xffffffff
jmp 0x81593b
mov dword [edi + 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00815a1e
leave
ret