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

Disassembly:
test eax, eax
jne 0x4b4503
jmp 0x4b421c
mov eax, dword [ebx + 0x1af0]
jmp 0x403b83
jne 0x4b4503
mov ax, word [ebx + 0x36b]
jmp 0x40a274
cmp ax, 0x24
je 0x403ba7
jmp 0x40a29b
jmp 0x4b421c
mov eax, dword [esp + 4]
sub esp, 0x9c
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, ecx
jne 0x4b41a1
mov eax, dword [edi + 0x19b4]
test eax, eax
jle 0x4b4503
mov esi, dword [esp + 0xbc]
mov ebx, dword [esp + 0xb4]
mov ecx, dword [edi + 0x3e5]
push esi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004afa10
mov ecx, eax
push 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
mov ecx, dword [edi + 0x3e1]
push eax
call fcn.00438cd0
test al, 0x88
mov eax, dword [esp + 0xb8]
jne 0x4b4180
lea edx, [edi + 0x19dc]
mov dword [edi + 0x19b0], 1
mov dword [edx], ebx
mov dword [edx + 4], eax
mov dword [edx + 8], esi
push esi
push eax
push ebx
mov ecx, edi
call fcn.0048ab50
test al, al
je 0x4b4494
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
mov ecx, dword [edi + 0x3e9]
push eax
add ecx, 0x5f4b
call fcn.004be7d0
mov ebx, eax
test ebx, ebx
mov eax, dword [ebx + 0x125]
mov esi, dword [ebx + 0x121]
mov dword [esp + 0x18], eax
je 0x4b4503
mov al, byte [ebx + 0x188e]
test al, al
jne 0x4b4503
mov ecx, ebx
call fcn.004be3e0
test al, al
je 0x4b4503
cmp dword [edi + 0x19b4], 9
jge 0x4b4503
mov ecx, ebx
call fcn.004be110
mov ecx, edi
mov ebp, eax
call fcn.004be110
cmp ebp, eax
jne 0x4b4503
cmp dword [ebx + 0xf2], 2
jmp 0x40a261
fld dword [esp + 0xb8]
fmul dword [esp + 0xb8]
fld dword [esp + 0xb4]
fmul dword [esp + 0xb4]
faddp st(1)
fld dword [esp + 0xbc]
fmul dword [esp + 0xbc]
faddp st(1)
fcomp dword [0x4f0400]
fnstsw ax
test ah, 0x40
je 0x4b4503
cmp esi, 0xffffffff
je 0x4b4503
cmp dword [esp + 0x18], 0xffffffff
je 0x4b4503
mov edx, dword [ebx]
lea eax, [esp + 0x74]
push eax
mov ecx, ebx
call dword [edx + 0x4c]
mov edx, dword [ebx]
mov eax, 0x40000000
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
call dword [edx + 0x50]
mov al, byte [edi + 0x18f0]
test al, al
je 0x4b4463
lea ecx, [ebx + 0xf9]
mov dword [esp + 0x1c], 0
fld dword [0x4f0400]
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x3bf]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], edx
fcomp dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
fnstsw ax
test ah, 1
je 0x4b4463
mov esi, dword [0x4f0220]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call esi
and eax, 0x80000003
jns 0x4b430a
dec eax
or eax, 0xfffffffc
inc eax
add eax, 2
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x4f205c]
fstp dword [esp + 0x30]
call esi
cdq
mov ecx, 0x168
idiv ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [0x4f1d08]
fld st(0)
fcos
fstp dword [esp + 0x68]
fsin
fstp dword [esp + 0x70]
call esi
cdq
mov ecx, 0x64
mov dword [esp + 0x48], 0
idiv ecx
push 0x11
push 0x3f7ae148
push 0x40a00000
push 0xb4ffffff
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x3e9]
fild dword [esp + 0x24]
fld dword [esp + 0x78]
mov ebp, dword [edx + 0x9d]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x80]
fld dword [esp + 0x54]
fmul dword [0x4f2394]
fstp dword [esp + 0x60]
fld dword [esp + 0x58]
fmul dword [0x4f2394]
fstp dword [esp + 0x64]
fmul dword [0x4f2394]
fld dword [esp + 0x60]
fmul dword [esp + 0x20]
fstp dword [esp + 0x6c]
fld dword [esp + 0x64]
fmul dword [esp + 0x20]
fstp dword [esp + 0x70]
fmul dword [esp + 0x20]
fld dword [esp + 0x48]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x30]
fld dword [esp + 0x4c]
fadd dword [esp + 0x70]
fstp dword [esp + 0x34]
fld dword [esp + 0x50]
fadd st(1)
fstp dword [esp + 0x38]
fstp st(0)
call esi
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4b43fd
dec eax
or eax, 0xfffffffe
inc eax
push eax
call esi
cdq
mov ecx, 0xa
idiv ecx
mov ecx, dword [esp + 0x40]
lea edx, [edx + edx*4]
shl edx, 3
push edx
mov edx, dword [esp + 0x48]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, ebp
mov dword [edx + 8], eax
call fcn.0049f280
test al, al
je 0x4b4494
inc dword [esp + 0x1c]
fild dword [esp + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4b42fc
mov ecx, dword [edi + 0x19b4]
mov edx, dword [esp + 0xb0]
push 1
mov dword [edi + ecx*4 + 0x19b8], edx
mov esi, dword [edi + 0x19b4]
inc esi
mov ecx, ebx
mov dword [edi + 0x19b4], esi
mov eax, dword [ebx]
call dword [eax + 0x9c]
test al, al
jne 0x4b44be
add edi, 4
push str.CommandAim__:_Error_occurs.
push edi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
mov eax, dword [edi + 0x35f]
lea ecx, [ebx + 0x24]
push ecx
push str.__s
lea edx, [eax + eax*4]
lea eax, [edi + edx*4 + 0x1c7]
push eax
call dword [0x4f01fc]
mov ecx, dword [edi + 0x35f]
mov dx, word [ebx + 0x36b]
add esp, 0xc
mov word [edi + ecx*2 + 0x19f], dx
mov eax, dword [edi + 0x35f]
inc eax
mov dword [edi + 0x35f], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x9c
ret 0x10