Function at 0x804740
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0xbcbae0]
mov edi, edx
mov ebp, ecx
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ebx, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x14], eax
lea eax, [eax + 2]
mov dword [ecx + 0x28], eax
mov ecx, ebx
mov edx, dword [edx + 0x18]
call fcn.007825f0
mov esi, eax
mov eax, dword [ebx + 0x10]
mov ecx, ebp
mov edx, 0x1b
mov ebx, esi
shl ebx, 4
push dword [eax + ebx]
push 0
mov ebx, edi
push dword [edi]
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x804a6a
mov eax, dword [esp]
mov ecx, ebp
mov edx, esi
push dword [eax]
push 1
push dword [eax + 0x1c]
call fcn.007ec020
add esp, 0xc
mov ecx, ebp
call fcn.007ebd10
test eax, eax
je 0x804a6a
mov ecx, dword [esp + 0x48]
mov edi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
test ecx, ecx
mov dword [esp + 4], ecx
jns 0x8047e1
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, ebx
mov ebp, ebx
inc eax
mov dword [esp + 0x1c], eax
call fcn.007ec120
mov esi, dword [edi + 0x28]
mov ecx, eax
mov dword [esp + 0x28], ecx
lea eax, [esi + 1]
mov dword [esp + 0xc], esi
mov dword [edi + 0x28], eax
call fcn.00804e40
movzx ebx, word [ebx + 0x32]
mov ecx, dword [esp + 0x10]
mov edx, 0x6f
push 0xfffffffffffffff7
push eax
push ebx
push 0
push esi
call fcn.007ebd50
add esp, 0x14
mov ebx, dword [esp + 0x14]
mov ecx, edi
mov edx, ebx
push 0x60
push dword [esp + 4]
push dword [esp + 0x10]
call fcn.007ebf70
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, 0x25
push 0
push ebx
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.007f1720
mov ecx, edi
mov esi, eax
call fcn.00804e50
lea eax, [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x24], ebp
mov edx, ebp
push 0
push 0
push eax
push 0
push esi
push ebx
call fcn.00804e60
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x82
mov dword [esp + 0x18], esi
push esi
mov esi, dword [esp + 0xc]
push dword [esp + 0x10]
call fcn.007c57e0
add esp, 8
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp], edi
call fcn.00804fb0
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, 5
lea eax, [ebp + 1]
push eax
push ebx
mov ebx, dword [esp + 0x18]
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, ebp
call fcn.007ebd40
cmp dword [esp + 0x48], 0
jns 0x8048f6
mov ecx, ebx
mov edx, 0x89
push esi
push dword [esp + 8]
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x61
push 0xfffffffffffffff7
push dword [esp + 0x2c]
push esi
push dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
push esi
call fcn.007ebd50
add esp, 0x14
mov edx, dword [esp + 0x48]
mov ecx, ebx
shr edx, 0x1b
and edx, 0xfffffff0
xor edx, 0x11
call fcn.00782720
mov ecx, ebx
mov edx, 0x23
push 0
push dword [esp + 0x10]
call fcn.007c57e0
add esp, 8
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], eax
cmp byte [ebp + 0x36], 0
je 0x8049a7
mov ecx, ebx
mov edx, 1
call fcn.007ebf10
mov ecx, ebx
mov edi, eax
call fcn.007f2430
mov dword [esp + 8], eax
movzx eax, word [ebp + 0x32]
mov ecx, ebx
mov edx, 0x7c
push eax
mov esi, ebp
mov ebp, dword [esp + 0x1c]
push ebp
push edi
push dword [esp + 0x18]
call fcn.007826e0
add esp, 0x10
mov ecx, dword [esp]
mov edx, 2
push esi
call fcn.00804fc0
add esp, 4
mov edx, edi
mov edi, esi
mov esi, dword [esp + 0x1c]
mov ecx, ebx
call fcn.007ebd40
jmp 0x8049c0
mov ecx, dword [esp]
call fcn.007f0b40
mov ecx, ebx
call fcn.007f2430
mov edi, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], eax
mov ecx, ebx
mov edx, 0x7d
push esi
push ebp
push dword [esp + 0x14]
call fcn.007c5800
add esp, 0xc
test byte [edi + 0x39], 2
mov edi, esi
jne 0x8049ed
mov ecx, ebx
mov edx, 0x81
push edi
call fcn.007edd80
add esp, 4
mov ecx, ebx
mov edx, 0x83
push ebp
push edi
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x10
call fcn.00782720
mov ecx, dword [esp]
mov edx, ebp
call fcn.007f0bc0
mov ecx, ebx
mov edx, 3
push dword [esp + 8]
mov esi, dword [esp + 0x10]
push esi
call fcn.007c57e0
add esp, 8
mov edx, dword [esp + 4]
mov ecx, ebx
call fcn.007ebd40
mov ecx, ebx
mov edx, 0x74
push dword [esp + 0x14]
call fcn.007edd80
add esp, 4
mov ecx, ebx
mov edx, 0x74
push edi
call fcn.007edd80
add esp, 4
mov ecx, ebx
mov edx, 0x74
push esi
call fcn.007edd80
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00980459
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret