Function at 0x4099e0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4293b9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0xc
lea eax, [ebp - 0x168]
mov ecx, 0x43c99c
push eax
call fcn.00402e80
lea ecx, [ebp - 0x168]
call fcn.00402cb0
push eax
push 0x435454
call fcn.004096e0
add esp, 8
cmp dword [ebp - 0x168], 0
je 0x409a5c
push 1
call fcn.00418e63
lea ecx, [ebp - 0xb0]
call fcn.00404fb0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x409a8b
mov eax, dword [ecx]
jmp 0x409a8d
mov eax, ecx
push 0xa
push str.house_1_bl
mov byte [eax], 0
call fcn.00403350
lea eax, [ebp - 0x140]
push eax
call fcn.0040a1b0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407240
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 1
push eax
call fcn.0040c261
mov byte [ebp - 4], 0
movaps xmm0, xmmword [0x435960]
movaps xmmword [ebp - 0x30], xmm0
xorps xmm0, xmm0
call fcn.00427de0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x148], xmm0
xorps xmm0, xmm0
call fcn.00427c20
movss xmm2, dword [ebp - 0x148]
lea eax, [ebp - 0xb0]
xorps xmm1, xmm1
mov dword [ebp - 0x5c], 0
cvtsd2ss xmm1, xmm0
mov ecx, 0x43c990
mov dword [ebp - 0x54], 0
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
movaps xmm0, xmmword [0x435940]
movaps xmmword [ebp - 0x50], xmm0
movaps xmm0, xmm2
xorps xmm0, xmmword [0x4359a0]
movss dword [ebp - 0x158], xmm1
movss dword [ebp - 0x60], xmm1
movss dword [ebp - 0x58], xmm2
movss dword [ebp - 0x150], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x38], xmm1
mov dword [ebp - 0xb0], 0
call fcn.00407a80
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x409b94
mov eax, dword [ecx]
jmp 0x409b96
mov eax, ecx
push 5
push str.light
mov byte [eax], 0
call fcn.00403350
lea eax, [ebp - 0x140]
push eax
call fcn.0040a1b0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407240
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
push eax
call fcn.0040c261
mov byte [ebp - 4], 0
movaps xmm0, xmmword [0x435980]
movaps xmmword [ebp - 0x30], xmm0
movsd xmm0, qword [0x435920]
call fcn.00427de0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x144], xmm0
movsd xmm0, qword [0x435920]
call fcn.00427c20
movss xmm2, dword [ebp - 0x144]
lea eax, [ebp - 0xb0]
xorps xmm1, xmm1
mov dword [ebp - 0x5c], 0
cvtsd2ss xmm1, xmm0
mov ecx, 0x43c990
mov dword [ebp - 0x54], 0
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
movaps xmm0, xmmword [0x435940]
movaps xmmword [ebp - 0x50], xmm0
movaps xmm0, xmm2
xorps xmm0, xmmword [0x4359a0]
movss dword [ebp - 0x154], xmm1
movss dword [ebp - 0x60], xmm1
movss dword [ebp - 0x58], xmm2
movss dword [ebp - 0x14c], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x38], xmm1
mov dword [ebp - 0xb0], 1
call fcn.00407a80
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x409ca7
mov eax, dword [ecx]
jmp 0x409ca9
mov eax, ecx
push 5
push str.light
mov byte [eax], 0
call fcn.00403350
lea eax, [ebp - 0x140]
push eax
call fcn.0040a1b0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407240
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 3
push eax
call fcn.0040c261
movss xmm1, dword [ebp - 0x154]
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0
mov ecx, 0x43c990
movaps xmm0, xmmword [0x435970]
movaps xmmword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x144]
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x435940]
movaps xmmword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0x14c]
push eax
movss dword [ebp - 0x60], xmm1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
movss dword [ebp - 0x40], xmm0
mov dword [ebp - 0x3c], 0
movss dword [ebp - 0x38], xmm1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xb0], 2
call fcn.00407a80
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x409d83
mov eax, dword [ecx]
jmp 0x409d85
mov eax, ecx
push 5
push str.ambul
mov byte [eax], 0
call fcn.00403350
lea eax, [ebp - 0x140]
push eax
call fcn.0040a1b0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407240
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 4
push eax
call fcn.0040c261
movss xmm1, dword [ebp - 0x158]
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0
mov ecx, 0x43c990
movaps xmm0, xmmword [0x435990]
movaps xmmword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x148]
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x435940]
movaps xmmword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0x150]
push eax
movss dword [ebp - 0x60], xmm1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
movss dword [ebp - 0x40], xmm0
mov dword [ebp - 0x3c], 0
movss dword [ebp - 0x38], xmm1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xb0], 3
call fcn.00407a80
push fcn.004011c0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 5
push eax
call fcn.0040c261
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret