Function at 0x40ea06
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov ecx, dword [eax]
lea edx, [edi + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040d586
test al, al
je 0x40ea2a
cmp dword [edi + 8], ecx
jb 0x40ed19
xor al, al
pop edi
pop ebx
leave
ret
and dword [ebp - 4], 0
cmp dword [esi + 0x2bfc], 0
jle 0x40eb50
mov dword [ebp - 0xc], 0xfffff5f8
sub dword [ebp - 0xc], esi
lea ebx, [esi + 0xa08]
mov eax, dword [edi + 0x18]
cmp eax, dword [ebx - 0x108]
jne 0x40eb38
mov eax, dword [0x41d350]
cmp eax, dword [edi + 0x20]
je 0x40eb50
mov eax, dword [ebx]
test eax, eax
jle 0x40ea7c
cmp eax, 0x10
jl 0x40ea7c
and dword [ebx], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 8], eax
cmp eax, 0x6400000
ja 0x40eacf
test eax, eax
jne 0x40ea94
mov dword [ebp - 8], 1
add dword [ebp - 8], 4
cmp dword [0x41ffa4], 0
jne 0x40eaaa
call fcn.00401270
test al, al
je 0x40eacf
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40ead1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov edx, dword [ebx]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
shl edx, 4
add edx, ecx
mov dword [edx + esi + 0x908], eax
mov eax, dword [ebx]
shl eax, 4
add eax, ecx
cmp dword [eax + esi + 0x908], 0
je 0x40eb38
mov edx, dword [edi + 0x24]
mov dword [eax + esi + 0x90c], edx
mov eax, dword [ebx]
mov edx, dword [edi + 0x20]
add eax, 0x91
shl eax, 4
add eax, ecx
mov dword [eax + esi], edx
mov eax, dword [edi + 0x20]
push dword [edi + 0x24]
mov dword [0x41d350], eax
lea eax, [edi + 0x36]
push eax
mov eax, dword [ebx]
shl eax, 4
add eax, ecx
push dword [eax + esi + 0x908]
call fcn.00401ab0
add esp, 0xc
inc dword [ebx]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x118
cmp eax, dword [esi + 0x2bfc]
jl 0x40ea51
and dword [ebp - 4], 0
cmp dword [esi + 0x4f00], 0
jle 0x40ec79
mov dword [ebp - 0xc], 0xffffd2f4
sub dword [ebp - 0xc], esi
lea ebx, [esi + 0x2d0c]
mov eax, dword [edi + 0x18]
cmp eax, dword [ebx - 0x108]
jne 0x40ec61
mov eax, dword [0x41d350]
cmp eax, dword [edi + 0x20]
je 0x40ec79
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
jle 0x40eb9d
cmp eax, 0x10
jl 0x40eb9d
mov dword [ebx], ecx
mov eax, dword [edi + 0x24]
mov dword [ebp - 8], eax
cmp eax, 0x6400000
ja 0x40ebf1
cmp eax, ecx
jne 0x40ebb5
mov dword [ebp - 8], 1
add dword [ebp - 8], 4
cmp dword [0x41ffa4], ecx
jne 0x40ebce
call fcn.00401270
test al, al
jne 0x40ebce
xor ecx, ecx
jmp 0x40ebf1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40eac7
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebp - 0xc]
shl edx, 4
add eax, ebx
add edx, eax
mov dword [edx + esi + 0x2c0c], ecx
mov ecx, dword [ebx]
mov edx, ecx
shl edx, 4
add edx, eax
cmp dword [edx + esi + 0x2c0c], 0
je 0x40ec61
mov edx, dword [edi + 0x24]
add ecx, 0x2c1
shl ecx, 4
add ecx, eax
mov dword [ecx + esi], edx
mov ecx, dword [ebx]
mov edx, dword [edi + 0x20]
shl ecx, 4
add ecx, eax
mov dword [ecx + esi + 0x2c14], edx
mov ecx, dword [edi + 0x20]
push dword [edi + 0x24]
mov dword [0x41d350], ecx
lea ecx, [edi + 0x36]
push ecx
mov ecx, dword [ebx]
shl ecx, 4
add ecx, eax
push dword [ecx + esi + 0x2c0c]
call fcn.00401ab0
add esp, 0xc
inc dword [ebx]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x118
cmp eax, dword [esi + 0x4f00]
jl 0x40eb71
mov byte [esi + 0x581c], 0
mov ecx, dword [edi + 0x18]
cmp ecx, 0xff00aaee
je 0x40ec9e
cmp ecx, 0xff00bb00
jne 0x40ed19
mov byte [esi + 0x581c], 1
mov eax, dword [esi + 0x5814]
test eax, eax
je 0x40ecae
push eax
call fcn.0040e8d8
mov ebx, dword [edi + 0x24]
cmp ebx, 0x6400000
ja 0x40ecf6
test ebx, ebx
jne 0x40ecbe
inc ebx
add ebx, 4
cmp dword [0x41ffa4], 0
jne 0x40ecd3
call fcn.00401270
test al, al
je 0x40ecf6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40eac7
mov ecx, eax
jmp 0x40ecf8
xor ecx, ecx
mov dword [esi + 0x5814], ecx
test ecx, ecx
je 0x40ed19
mov eax, dword [edi + 0x24]
push eax
mov dword [esi + 0x5818], eax
lea eax, [edi + 0x36]
push eax
push ecx
call fcn.00401ab0
add esp, 0xc
push edi
lea edi, [ebp - 0x10]
call fcn.0040d60c
mov edi, eax
pop ecx
test edi, edi
jne 0x40ea30
mov al, 1
jmp 0x40ea2c