Function at 0x40d76b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0x406e50
push 0x406e40
push 7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040dc50
test eax, eax
js 0x40d995
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x40d98c
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
js 0x40d983
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push 0x406e20
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40d97a
mov esi, dword [ebp + 0x1c]
mov edi, dword [0x41e118]
lea eax, [esi + 1]
push eax
push 0
push 0x11
call edi
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x40d971
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x41e124]
test eax, eax
js 0x40d96a
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call fcn.0040f1f0
add esp, 0xc
push ebx
call dword [0x41e120]
test eax, eax
js 0x40d96a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
test eax, eax
js 0x40d96a
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
js 0x40d96a
mov esi, dword [0x41e114]
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call esi
push 1
push 0
push 0xc
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40d961
mov esi, dword [ebp + 8]
push esi
push 0
push 8
call edi
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40d958
and dword [ebp - 0x28], 0
mov eax, 0x2008
mov edi, dword [0x41e11c]
mov word [ebp - 0x38], ax
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
jle 0x40d8cf
mov ebx, dword [ebp + 0xc]
push dword [ebx + eax*4]
call dword [0x41e12c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x30]
call edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jl 0x40d8ae
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call edi
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x48]
push edx
push esi
sub esp, 0x10
mov esi, 0x405170
mov ecx, dword [eax]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x94]
test eax, eax
jns 0x40d946
cmp eax, 0x8002000e
jne 0x40d92b
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x48]
push edx
push 0
sub esp, 0x10
mov esi, 0x405170
mov ecx, dword [eax]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x94]
test eax, eax
jns 0x40d946
push eax
call fcn.0040cbd5
pop ecx
push 0x10
push 0x406f68
push 0x406fdc
push 0
call dword [0x41e140]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0x30]
call dword [0x41e128]
push dword [ebp - 0x10]
call dword [0x41e128]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [0x41e128]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x2710
call dword [fcn.0041e010]
push 0
call fcn.0040e8e1
int3