Function at 0x40a270
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f0
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 0x10]
push 0
mov dword [ebp - 0x1c], 0
call fcn.004193f3
add esp, 4
push eax
call fcn.00418997
mov ecx, esi
mov dword [ebp - 0x40], 0
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a2e8
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004032c0
push 0xa8
lea eax, [ebp - 0x100]
mov dword [ebp - 0x28], 0
push 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00411680
add esp, 8
mov dword [ebp - 0x100], 0x439cec
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x98], 0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x74], 0
push eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0xa0], 0x439ca8
mov dword [ebp - 0xa4], 0x48
movlpd qword [ebp - 0xf8], xmm0
call fcn.0040cf80
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], 0x439d00
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xf0]
call fcn.0040ceb0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, 2
mov dword [ebp - 0xf0], 0x439c40
cmp esi, 0x7fffffff
ja 0x40aa63
test esi, esi
je 0x40a451
cmp esi, 0x1000
jb 0x40a411
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x40aa68
push eax
call fcn.0040f94f
add esp, 4
test eax, eax
je 0x40aad3
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40a41c
push esi
call fcn.0040f94f
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x1c]
push edi
call fcn.00411040
mov eax, dword [ebp - 0xe4]
lea ecx, [esi + edi]
mov dword [ebp - 0xb8], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebp - 0xd4]
mov dword [eax], edi
mov eax, dword [ebp - 0xc4]
mov dword [eax], esi
mov eax, 3
jmp 0x40a45b
mov dword [ebp - 0xb8], 0
push ecx
lea edx, [ebp - 0x58]
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
call fcn.0040e290
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x40a4d4
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x58]
push ecx
cmp eax, dword [ebp - 0x20]
je 0x40a4ad
mov ecx, eax
call fcn.0040c710
add dword [ebp - 0x24], 0x18
jmp 0x40a4b6
push eax
lea ecx, [ebp - 0x28]
call fcn.0040dbb0
push ecx
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x100]
call fcn.0040e290
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x40a494
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x28]
mov edi, dword fs:[0x2c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40a63f
mov ecx, dword [edi]
mov eax, dword [0x450ec8]
mov dword [ebp - 0x1c], 0x7b7d6160
mov word [ebp - 0x18], 0x2e6c
cmp eax, dword [ecx + 4]
jle 0x40a556
push 0x450ec8
call fcn.0040fac8
add esp, 4
cmp dword [0x450ec8], 0xffffffff
jne 0x40a556
mov eax, dword [ebp - 0x1c]
mov dword [0x450d10], eax
mov ax, word [ebp - 0x18]
push 0x42d470
mov word [0x450d14], ax
call fcn.0040fdda
add esp, 4
push 0x450ec8
call fcn.0040fa7e
add esp, 4
mov al, byte [0x450d15]
test al, al
je 0x40a589
xor byte [0x450d10], 0x2e
xor byte [0x450d11], 0x2e
xor byte [0x450d12], 0x2e
xor byte [0x450d13], 0x2e
xor byte [0x450d14], 0x2e
xor al, 0x2e
mov byte [0x450d15], al
mov ecx, 0x450d10
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0xf
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a5b0
sub ecx, edx
push ecx
push 0x450d10
lea ecx, [ebp - 0x1cc]
call fcn.004032c0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x40a5f5
movups xmm0, xmmword [ebp - 0x1cc]
mov dword [eax], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1bc]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x24], 0x18
jmp 0x40a63f
lea ecx, [ebp - 0x1cc]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d9d0
mov edx, dword [ebp - 0x1b8]
cmp edx, 0x10
jb 0x40a63f
mov ecx, dword [ebp - 0x1cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a635
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aad3
push edx
push ecx
call fcn.0040f97f
add esp, 8
mov edi, dword [edi]
mov eax, dword [0x450fdc]
mov dword [ebp - 0x1c], 0x2e45464d
cmp eax, dword [edi + 4]
jle 0x40a68d
push 0x450fdc
call fcn.0040fac8
add esp, 4
cmp dword [0x450fdc], 0xffffffff
jne 0x40a68d
mov eax, dword [ebp - 0x1c]
push 0x42d460
mov dword [0x450f10], eax
call fcn.0040fdda
add esp, 4
push 0x450fdc
call fcn.0040fa7e
add esp, 4
mov al, byte [0x450f13]
test al, al
je 0x40a6b2
xor byte [0x450f10], 0x2e
xor byte [0x450f11], 0x2e
xor byte [0x450f12], 0x2e
xor al, 0x2e
mov byte [0x450f13], al
mov ecx, 0x450f10
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a6d8
sub ecx, edx
push ecx
push 0x450f10
lea ecx, [ebp - 0x1e4]
call fcn.004032c0
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x1e4]
mov ecx, esi
mov dword [ebp - 0x1c], 5
call fcn.0040d5e0
test al, al
jne 0x40a7fe
mov eax, dword [0x450d3c]
mov dword [ebp - 0x1c], 0x45464d01
mov byte [ebp - 0x1b1], 0x2e
cmp eax, dword [edi + 4]
jle 0x40a76f
push 0x450d3c
call fcn.0040fac8
add esp, 4
cmp dword [0x450d3c], 0xffffffff
jne 0x40a76f
mov eax, dword [ebp - 0x1c]
mov dword [0x450d78], eax
mov al, byte [ebp - 0x1b1]
push 0x42d440
mov byte [0x450d7c], al
call fcn.0040fdda
add esp, 4
push 0x450d3c
call fcn.0040fa7e
add esp, 4
mov al, byte [0x450d7c]
test al, al
je 0x40a79b
xor byte [0x450d78], 0x2e
xor byte [0x450d79], 0x2e
xor byte [0x450d7a], 0x2e
xor byte [0x450d7b], 0x2e
xor al, 0x2e
mov byte [0x450d7c], al
mov ecx, 0x450d78
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a7c1
sub ecx, edx
push ecx
push 0x450d78
lea ecx, [ebp - 0x1cc]
call fcn.004032c0
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x1cc]
mov ecx, esi
mov dword [ebp - 0x1c], 7
call fcn.0040d5e0
test al, al
jne 0x40a7fe
mov byte [ebp - 0x1b1], al
jmp 0x40a80b
test byte [ebp - 0x1c], 2
mov byte [ebp - 0x1b1], 1
je 0x40a848
mov edx, dword [ebp - 0x1b8]
cmp edx, 0x10
jb 0x40a848
mov ecx, dword [ebp - 0x1cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a83b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aad3
push edx
push ecx
call fcn.0040f97f
mov esi, dword [ebp - 0x28]
add esp, 8
mov edx, dword [ebp - 0x1d0]
cmp edx, 0x10
jb 0x40a885
mov ecx, dword [ebp - 0x1e4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aad3
push edx
push ecx
call fcn.0040f97f
mov esi, dword [ebp - 0x28]
add esp, 8
cmp byte [ebp - 0x1b1], 0
jne 0x40aa6d
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x40aab2
je 0x40aab7
cmp eax, 2
jne 0x40a958
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40a8ca
mov eax, dword [esi]
cmp dword [esi + 0x10], 1
jne 0x40a8f9
movzx eax, byte [eax]
cmp al, 0x72
jne 0x40a8db
xor eax, eax
jmp 0x40a8e0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a8f9
call fcn.00418976
cdq
mov ecx, 0xc350
idiv ecx
add edx, 0x2710
jmp 0x40a938
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40a903
mov ecx, dword [esi]
cmp dword [esi + 0x10], 2
jne 0x40a958
movzx eax, byte [ecx]
cmp al, 0x72
jne 0x40a91c
movzx eax, byte [ecx + 1]
cmp al, 0x73
jne 0x40a91c
xor eax, eax
jmp 0x40a921
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a958
call fcn.00418976
cdq
mov ecx, 0xc350
idiv ecx
add edx, 0x11170
push edx
call dword [0x42e084]
mov eax, dword [ebp - 0x28]
sub esp, 0x18
add eax, 0x18
mov ecx, esp
push eax
call fcn.0040c710
call fcn.00409900
add esp, 0x18
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40a98c
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a982
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aad3
push edx
push ecx
call fcn.0040f97f
add esp, 8
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], 0x439d00
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xf0]
call fcn.0040b090
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], 0x439ca8
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x104], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xa0], 0x439be0
call fcn.0040f053
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0040c4b0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40aa43
mov edx, dword [ebp - 0x40]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa39
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aad3
push ecx
push edx
call fcn.0040f97f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f73f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.0040eb79
call fcn.004024c0
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.0040a250
sub esp, 0xc
call fcn.0040aae0
mov ecx, eax
call fcn.0040c350
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00403120
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0040c060
lea ecx, [ebp - 0x1fc]
call fcn.00403050
push 0
call fcn.0041882d
call fcn.004060c0
sub esp, 0x18
lea ecx, [ebp - 0x28]
mov esi, esp
push 0
call fcn.0040c490
push eax
mov ecx, esi
call fcn.0040c710
call fcn.0040a080
call fcn.004140a7
int3