Function at 0x53f390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0x14], ebx
jl 0x53f3be
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0053bf20
mov eax, dword [ebx + 0x348]
cmp eax, edi
je 0x53fb81
mov ecx, dword [eax]
mov eax, dword [ecx]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x53fb81
lea esp, [esp]
mov esi, dword [ecx + 8]
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0xd0], 0x7149
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], edi
je 0x53fb6f
lea ecx, [esp + 0xd0]
push ecx
push 0xb
push esi
call eax
add esp, 0xc
cmp eax, 0xd
je 0x53f67b
cmp eax, 0x19
jne 0x53fb6f
cmp dword [0x76ba40], edi
je 0x53f646
mov ebx, dword [esi + 0xcc]
cmp ebx, edi
jl 0x53f642
push ebx
push str.Spawned_new_Vehicle__i__from_Ent_r_n
call fcn.00569b60
mov edx, dword [0x72c1e4]
add esp, 8
inc edx
mov dword [0x72c1e4], edx
mov eax, dword [esi + 0x2a8]
cmp eax, edi
je 0x53f490
mov word [eax + 0xc], 0x64
push esi
call fcn.0063b370
mov edx, dword [0x76ba40]
mov eax, dword [edx + 0xb38]
add esp, 4
cmp eax, 1
jle 0x53f642
movss xmm1, dword [0x68b500]
movaps xmm0, xmmword [esi + 0x40]
movss dword [esp + 0x80], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x84], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x88], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x8c], xmm1
movaps xmm1, xmmword [esp + 0x80]
shufps xmm1, xmm0, 0xe0
shufps xmm0, xmm1, 0x24
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x55
movaps xmmword [esp + 0x120], xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
movaps xmmword [esp + 0x1a0], xmm0
movaps xmm0, xmmword [esi + 0x30]
xor eax, eax
movaps xmmword [esp + 0x140], xmm1
mov edx, dword [esp + 0x140]
movaps xmmword [esp + 0x160], xmm0
movaps xmm0, xmmword [esi + 0x30]
mov ecx, 0xb
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x120]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x55
movaps xmm0, xmmword [esi + 0x30]
movaps xmmword [esp + 0x180], xmm1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x180]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x70]
movaps xmmword [esp + 0xf0], xmm1
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x5c], ecx
push eax
mov ecx, 0x6de358
mov byte [esp + 0x48], 6
mov dword [esp + 0x64], edx
call fcn.004ae260
mov cl, byte [esi + 0x1ed]
mov dx, word [esi + 0xd4]
push 0
push 0
push 8
push 0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
mov byte [esp + 0x81], cl
push 0x2c
lea ecx, [esp + 0x64]
mov byte [esp + 0x84], al
mov ax, word [0x6bc838]
push ecx
mov ecx, dword [0x76ba40]
mov byte [esp + 0x8a], 1
mov byte [esp + 0x8b], bl
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
mov byte [esp + 0x8e], 1
mov byte [esp + 0x8f], 0
mov word [esp + 0x90], dx
mov word [esp + 0x92], ax
call fcn.00623b30
xor edi, edi
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x2a8]
cmp esi, edi
je 0x53fb6f
cmp byte [esi + 8], 1
je 0x53fb6f
mov edx, dword [esi + 0x84]
and edx, 0xffff7fff
or edx, 0x4000
mov dword [esi + 0x84], edx
jmp 0x53fb6f
xor eax, eax
mov ax, word [ebx + 0x90]
movsx ecx, ax
lea ecx, [ecx + ecx*2]
lea ecx, [ebx + ecx*4 + 0x194]
mov dword [esp + 0x10], ecx
inc eax
mov word [ebx + 0x90], ax
mov dword [ecx + 4], edi
mov ax, word [ebx + 0x90]
cmp ax, 1
jne 0x53f6cb
lea edx, [ebx + 0x194]
mov ecx, dword [edx]
lea eax, [ebx + 0x258]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x53f6ed
cmp ax, 2
jne 0x53f6f1
lea eax, [ebx + 0x1a0]
mov edx, dword [eax]
lea ecx, [ebx + 0x264]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov dword [esi + 0x9c], ebx
mov dword [esp + 0x90], 0x6d61
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov eax, dword [ecx]
mov edx, dword [eax]
cmp edx, edi
je 0x53f751
lea ecx, [esp + 0x90]
push ecx
push 0xb
push eax
call edx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [ecx]
mov esi, dword [edx + 0x8c]
cmp esi, edi
je 0x53fb6f
movsx eax, word [esi + 0x9e6]
push 1
push eax
call fcn.0043d610
mov byte [esi + 0x270], al
mov eax, dword [0x76ba40]
add esp, 8
cmp eax, edi
je 0x53fa1a
call fcn.005f2050
fcomp dword [0x68b504]
fnstsw ax
test ah, 5
jp 0x53f7c4
movsx ecx, word [esi + 0x9e6]
push ecx
call fcn.004c5cd0
add esp, 4
test al, al
je 0x53f7b8
mov dword [esi + 0xa04], 6
jmp 0x53f7d0
mov dword [esi + 0xa04], 5
jmp 0x53f7d0
mov edx, dword [ebx + 0x2fc]
mov dword [esi + 0xa04], edx
mov eax, dword [esi + 0xa04]
push edi
push eax
mov ecx, esi
call fcn.0041d7f0
mov ecx, dword [0x6f2234]
mov eax, dword [ecx + 0x84]
cmp eax, edi
jle 0x53f7f6
dec eax
push eax
call fcn.004ada70
mov ecx, dword [0x76ba40]
push 1
push 0xa
push edi
call fcn.00621a40
mov edi, eax
cmp edi, 0xffffffff
jne 0x53f845
mov eax, dword [0x76ba40]
mov edi, 0xa
add eax, 0xc80
lea esp, [esp]
dec edi
sub eax, 4
test edi, edi
jl 0x53f82d
cmp dword [eax], 0
jne 0x53f820
cmp edi, 0xffffffff
jne 0x53f837
mov edi, 9
push edi
push str.__Cannot_find_enemy_slot__________VERY_BAD._Use:__i_r_n
call fcn.00569b60
add esp, 8
test edi, edi
jl 0x53fa14
push edi
push str.Spawned_new_Enemy__i__from_Ent_r_n
call fcn.00569b60
mov dword [esi + 0x594], edi
mov ecx, dword [0x76ba40]
mov dword [ecx + edi*4 + 0xc58], esi
mov eax, dword [0x76ba40]
mov edi, dword [eax + 0xc80]
inc edi
push esi
mov dword [eax + 0xc80], edi
call fcn.0063b370
mov ecx, dword [0x76ba40]
mov eax, dword [ecx + 0xb38]
add esp, 0xc
cmp eax, 1
jle 0x53fa14
movss xmm1, dword [0x68b500]
movaps xmm0, xmmword [esi + 0x40]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
movss dword [esp + 0x70], xmm1
movss xmm1, dword [0x68b4fc]
mov dword [esp + 0x24], edx
movss dword [esp + 0x74], xmm1
movss xmm1, dword [0x68b4fc]
mov dword [esp + 0x28], edx
movss dword [esp + 0x78], xmm1
movss xmm1, dword [0x68b4fc]
mov dword [esp + 0x2c], edx
movss dword [esp + 0x7c], xmm1
movaps xmm1, xmmword [esp + 0x70]
shufps xmm1, xmm0, 0xe0
mov dword [esp + 0x30], edx
shufps xmm0, xmm1, 0x24
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x55
movaps xmmword [esp + 0x190], xmm1
mov edx, dword [esp + 0x190]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
movaps xmmword [esp + 0x110], xmm0
movaps xmm0, xmmword [esi + 0x30]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x24], eax
movaps xmmword [esp + 0x130], xmm1
mov eax, dword [esp + 0x130]
mov dword [esp + 0x28], edx
movaps xmmword [esp + 0x170], xmm0
movaps xmm0, xmmword [esi + 0x30]
mov edx, dword [esp + 0x170]
mov dword [esp + 0x2c], eax
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x55
movaps xmm0, xmmword [esi + 0x30]
mov dword [esp + 0x30], edx
movaps xmmword [esp + 0x150], xmm1
mov eax, dword [esp + 0x150]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
movaps xmm1, xmm0
push 0
shufps xmm1, xmm0, 0xaa
movaps xmmword [esp + 0x104], xmm1
mov edx, dword [esp + 0x104]
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
push 0
push 8
mov byte [esp + 0x28], 0xc
mov eax, dword [edx + 0x80]
mov dl, byte [eax]
mov al, byte [esi + 0x94]
push 0
mov byte [esp + 0x4f], al
mov al, byte [esi + 0x270]
push 0xffffffffffffffff
mov byte [esp + 0x52], dl
mov dl, byte [esi + 0x594]
push 0
mov byte [esp + 0x59], al
mov al, byte [esi + 0xa04]
mov byte [esp + 0x58], dl
mov dx, word [esi + 0xc]
push 0xffffffffffffffff
mov byte [esp + 0x5e], al
mov word [esp + 0x58], dx
mov dl, byte [esi + 0x5a4]
push 0x28
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x67], dl
call fcn.00623b30
mov ebx, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x8c]
mov ax, word [eax + 0xc]
cmp ax, 0xff6a
jl 0x53fa36
cmp ax, 0xff9b
jle 0x53fa56
cmp dword [0x76ba40], edi
je 0x53fb00
cmp ax, 0xff9d
jl 0x53fb00
cmp ax, 0xff9f
jg 0x53fb00
mov ecx, dword [0x6f2234]
push esi
call fcn.004b3d50
push esi
mov ecx, ebx
call fcn.00534d50
mov al, byte [ebx + 0x2ca]
test al, al
je 0x53fb6f
call fcn.005f2050
fcomp dword [0x68b504]
fnstsw ax
test ah, 5
jp 0x53fb6f
mov edx, dword [ebx + 0x84]
cmp dword [edx], 0x77
jne 0x53faa7
mov word [esi + 0x5a4], 0x15
jmp 0x53fb6f
call fcn.005f2050
fstp dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [0x6f2234]
call fcn.004adb20
fld dword [esp + 0x10]
lea ecx, [edi + eax]
shl ecx, 2
fcomp dword [ecx + 0x6c67c8]
fnstsw ax
test ah, 0x41
jne 0x53faef
fld dword [esp + 0x10]
fcomp dword [ecx + 0x6c67d4]
fnstsw ax
test ah, 5
jp 0x53faef
lea eax, [ebx + 4]
mov word [esi + 0x5a4], ax
add edi, 3
inc ebx
cmp edi, 0x30
jl 0x53fab2
mov ebx, dword [esp + 0x14]
xor edi, edi
jmp 0x53fb6f
mov ax, word [esi + 0xc]
cmp ax, 0xff51
jl 0x53fb6f
cmp ax, 0xff69
jg 0x53fb6f
mov byte [ecx + 0x96], 1
mov ecx, dword [0x6f2258]
mov dword [esp + 0xb0], 0x3d
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
mov eax, dword [esi]
cmp eax, edi
je 0x53fb6f
lea edx, [esp + 0xb0]
push edx
push 0xb
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x53f3e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc