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

Disassembly:
sub esp, 0x350
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x220]
push edi
add al, 0xbb
sbb al, 2
add byte [eax], al
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x234], esi
mov dword [ebx + 0x230], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0xb4], esi
jle 0x46f198
lea ebp, [edi + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x1718]
cmp eax, ecx
mov dword [esp + 0xa4], ecx
jl 0x46e0da
mov edx, dword [ebp - 0x10]
mov esi, dword [ebx + 0x171c]
cmp edx, esi
jl 0x46e0d6
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x10], eax
jmp 0x46e11a
cmp eax, ecx
jge 0x46e0ef
inc eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [ebp + 0x30]
fidiv dword [esp + 0xa4]
jmp 0x46e116
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x171c]
cmp eax, ecx
mov dword [esp + 0x6c], ecx
jge 0x46e11a
inc eax
mov dword [esp + 0xa4], eax
fild dword [esp + 0xa4]
fmul dword [ebp + 0x30]
fidiv dword [esp + 0x6c]
fstp dword [esp + 0x10]
mov eax, dword [ebx + 0x1730]
cmp eax, 3
jl 0x46f27d
cmp eax, 4
jle 0x46e983
cmp eax, 5
jne 0x46f27d
mov esi, dword [esp + 0x364]
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x74], edx
mov edx, dword [edi]
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x134]
mov dword [esp + 0x78], eax
mov ecx, dword [ecx + 8]
mov eax, dword [edi + 4]
mov dword [esp + 0x7c], ecx
add edx, 0x148
mov ecx, dword [edi + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, dword [edx]
mov dword [esp + 0x1d0], eax
mov ecx, dword [edx + 4]
fld dword [esp + 0x1d0]
fmul dword [esp + 0x10]
mov edx, dword [edx + 8]
mov dword [esp + 0x1d4], ecx
fld dword [esp + 0x1d4]
fmul dword [esp + 0x10]
mov dword [esp + 0x1d8], edx
fld dword [esp + 0x1d8]
fmul dword [esp + 0xf]
test byte [eax + ebx*8], ah
add dword [eax], eax
add al, bl
dec esp
and al, 0xf
fstp dword [esp + 0x344]
fxch st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x15c]
mov eax, dword [esp + 0x15c]
fadd dword [esp + 0x24]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x20]
push eax
fstp dword [esp + 0x164]
fld dword [esp + 0x348]
fadd dword [esp + 0x2c]
mov ecx, dword [esp + 0x164]
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0x24]
fstp dword [esp + 0x168]
mov esi, esi
inc ebx
push 0x5100b801
mov ecx, esi
mov dword [esp + 0xa8], edx
call fcn.004669f0
test al, al
jne 0x46f16b
lea edx, [esp + 0x74000098]
lea eax, [esp + 0x98]
imul edx, dword [eax - 0x75], 0x87afe8ce
invalid
pop esp
mov dword [esp + 0x2c4], edx
mov dword [esp + 0x2b0], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2b4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2b8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x2bc], ecx
mov dword [esp + 0x2c8], 0x3f800000
mov dword [esp + 0x2cc], 0x3f800000
lea esi, [esp + 0x2b0]
jmp 0x46f050
cmp eax, 3
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
jne 0x46eb45
push eax
add al, 0xf
test dword [edx - 0x26ffffff], esi
inc ebp
xor al, 0xd8
sbb eax, 0x4fe6b0
fld dword [ebp + 0x34]
fcomp dword [0x4fe6b0]
mov esi, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov dword [ebx + 0x24], ecx
js 0x46e931
dec ebx
and al, 0x78
mov dword [esp + 0x7c], esi
fnstsw ax
test ah, 0x44
jnp 0x46ea4d
je 0x46e9ce
jl 0x46e98b
loopne 0x46e9a4
les eax, [edi + ecx - 0x75]
xchg edi, eax
add byte [eax], al
add byte [ebx + 0x5324dc35], cl
add cl, bl
inc ebp
cmp al, 0xd8
jbe 0x46e9c6
mov esi, dword [0x5324dc]
fld dword [ebp + 0x3c]
fdiv dword [esi + 4]
mov edi, dword [esi]
call sub.MSVCRT.dll__ftol
cdq
idiv edi
test edx, edx
pop edi
invalid
jge 0x46e9d2
add edx, edi
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x70]
fld dword [ecx + edx*4]
fld st(0)
fmul dword [ebp + 0x10]
fld st(1)
fmul dword [ebp + 0x14]
fstp dword [esp + 0x27b]
fxch st(1)
fmul dword [ebp + 0x18]
fstp dword [esp + 0x220]
fld dword [esp + 0x16]
fadd st(1)
fldenv [esp]
hlt
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x364]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov edx, dword [ecx + 0x134]
add edx, 0x148
mov eax, dword [edx]
mov dword [esp + 0x184], eax
mov eax, dword [edx + 4]
fld dword [esp + 0x184]
fmul dword [esp + 0x10]
mov edx, dword [edx + 8]
mov dword [esp + 0x188], eax
fld dword [esp + 0x188]
fmul dword [esp + 0x10]
mov dword [esp + 0x18c], edx
fld dword [esp + 0x18c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x338]
fxch st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x110]
mov eax, dword [esp + 0x110]
fadd dword [esp + 0x78]
mov dword [esp + 0x98], eax
fstp dword [esp + 0x114]
fld dword [esp + 0x338]
fadd dword [esp + 0x7c]
mov edx, dword [esp + 0x114]
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x14]
fstp dword [esp + 0x118]
mov eax, dword [esp + 0x118]
push edx
mov dword [esp + 0xa4], eax
lea ecx, [esp - 0x2317afe8]
jle 0x46eb12
invalid
inc dword [eax + eax*8 + 0x653850f]
add byte [eax], al
lea ecx, [esp + 0x98]
lea edx, [esp + 0x98]
push ecx
or ecx, dword [esp + 0x368]
push edx
call fcn.004669f0
fld dword [esp + 0x98]
fsub dword [esp + 0x14]
jmp 0x46eb76
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x368]
push edx
mov dword [esp + 0x24], eax
call fcn.004669f0
test al, al
jne 0x46f16f
fld dword [esp + 0x10]
fmul dword [0x4fe5c8]
fstp dword [esp + 0x10]
fld dword [ebp + 0x2c]
fcomp dword [0x4fe6b0]
fnstsw ax
test ah, 0x44
jnp 0x46ed3d
mov esi, dword [0x5324dc]
fld dword [ebp + 0x2c]
fdiv dword [esi + 4]
mov edi, dword [esi]
call sub.MSVCRT.dll__ftol
cdq
idiv edi
mov eax, edx
test eax, eax
jge 0x46ebb2
add eax, edi
mov ecx, dword [esi + 8]
fld dword [ecx + eax*4]
mov eax, edx
test eax, eax
jge 0x46ebc0
add eax, edi
mov ebx, dword [esi + 0x2484c70c]
lock add byte [eax], al
add byte [eax], al
add byte [eax + 0x2484c73f], al
or al, 1
add byte [eax], al
add byte [eax], al
cmp byte [edi], 0xc7
test byte [eax + ebp], ah
add dword [eax], eax
add byte [eax], al
add byte [eax - 0x7dfb26c1], al
fld dword [esp + 0x10]
fchs
fst dword [esp + 0xe4]
fst dword [esp + 0xe8]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
fstp dword [esp + 0xec]
mov edx, dword [esp + 0xec]
mov dword [esp + 0x2c], eax
fst dword [esp + 0x104]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
fstp dword [esp + 0x108]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x104]
fstp dword [esp + 0x11c]
fld dword [esp + 0x1c]
mov dword [esp + 0x100], ecx
mov edx, ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x11c]
cli
push esp
and al, 0x48
fstp dword [esp + 0x124]
fld dword [esp + 0x1c]
mov dword [esp + 0x120], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x128]
mov edx, eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov eax, edx
mov ecx, edx
mov dword [esp + 0x1a4], eax
fstp dword [esp + 0x1a8]
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x1ac], 0x3f800000
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x60], edx
lea eax, [esp + 0x30]
mov ecx, 4
fld st(0)
fmul dword [eax]
add eax, 0x10
dec ecx
fadd dword [esp + 0x18]
fld st(2)
fmul dword [eax - 0x14]
fsubp st(1)
fld st(2)
fmul dword [eax - 0x10]
fld st(2)
fmul dword [eax - 0x14]
faddp st(1)
fadd dword [esp + 0x14]
fstp dword [eax - 0x14]
fstp dword [eax - 0x10]
jne 0x46ed09
fstp st(0)
fstp st(0)
jmp 0x46eea0
fld dword [esp + 0x14]
fsub dword [esp + 0x10]
mov dword [esp + 0x1cc], 0x3f800000
mov dword [esp + 0x1e8], 0x3f800000
mov dword [esp + 0x208], 0xc0800000
mov dword [esp + 0x148], 0x3f800000
fst dword [esp + 0x1c0]
fld dword [esp + 0x18]
fsub dword [esp + 0x10]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1cc]
mov dword [esp + 0x38], edx
fst dword [esp + 0x1c4]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1c8]
fld dword [esp + 0x14]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x1c8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
fst dword [esp + 0x6c]
fstp dword [esp + 0x1dc]
mov eax, dword [esp + 0x1dc]
fstp dword [esp + 0x1e0]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1e4]
mov edx, dword [esp + 0x1e4]
mov ecx, dword [esp + 0x1e0]
fstp dword [esp + 0x1fc]
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1e8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x48], eax
fst dword [esp + 0x200]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x200]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x208]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], ecx
fstp dword [esp + 0x204]
mov eax, dword [esp + 0x204]
mov ebx, ebp
and al, 0x3c
add dword [eax], eax
add cl, bl
pushfd
and al, 0x40
add dword [eax], eax
rcr cl, cl
inc esp
and al, 0x1c
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x54], eax
mov eax, edx
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x144]
mov edx, dword [esp + 0x144]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [ebx + 0x230]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x250], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x254], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x258], ecx
mov ecx, dword [ebx + 0x240]
shl edi, 5
mov dword [esp + 0x25c], edx
mov edx, 0xff000000
add edi, ecx
mov ecx, 8
lea esi, [esp + 0x2b0250]
mov dword [esp + 0x260], eax
mov dword [esp + 0x264], edx
mov dword [esp + 0x268], 0
mov dword [esp + 0x26c], 0
mov dword [esp + 0x2a0], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
mov edi, dword [ebx + 0x230]
mov esi, dword [ebx + 0x240]
mov dword [esp + 0x290], ecx
mov ecx, dword [esp + 0x40]
inc edi
mov dword [esp + 0x294], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x298], ecx
mov ecx, dword [esp + 0x48]
shl dword [edi + 5], 0x89
mov word [esp + ebx*4], fs
add al, byte [eax]
add byte [ebx], al
invalid
mov edi, dword [ebx + 0x230]
mov edx, dword [ebx + 0x240]
add edi, 3
mov ecx, 0x87
shl edi, 5
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x234]
mov ecx, dword [ebx + 0x230]
mov edx, dword [ebx + 0x23c]
add eax, 6
add ecx, 4
cmp eax, edx
mov dword [ebx + 0x230], ecx
mov dword [ebx + 0x234], eax
jge 0x46f09f
cmp ecx, dword [ebx + 0x238]
jl 0x46f16b
mov edx, dword [ebx + 0x354]
mov ecx, dword [ebx + 0x110]
push edx
call fcn.0046a630
mov eax, dword [ebx + 0x358]
mov ecx, dword [ebx + 0x110]
push eax
call fcn.0046a650
mov ecx, dword [ebx + 0x110]
xor esi, esi
push esi
call fcn.0046a5b0
mov ecx, dword [ebx + 0x230]
mov edx, dword [ebx + 0x240]
push ecx
mov ecx, dword [ebx + 0x248]
push edx
call fcn.0049f3c0
mov ecx, dword [ebx + 0x248]
call fcn.0049f5b0
mov ecx, dword [ebx + 0x24c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x234]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [ebx + 0x110]
push edx
mov edx, dword [ebx + 0x230]
push esi
push edx
push esi
push 4
call fcn.0046a960
mov ecx, dword [ebx + 0x24c]
mov dword [ebx + 0x234], esi
mov dword [ebx + 0x230], esi
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x110]
push 1
call fcn.0046a5b0
mov ecx, dword [ebx + 0x110]
push 5
call fcn.0046a630
mov ecx, dword [ebx + 0x110]
push 6
call fcn.0046a650
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0xb4]
mov ecx, dword [ebx + 0x220]
add edi, 0x60
add ebp, 0x60
inc eax
mov dword [esp + 0x70], edi
cmp eax, ecx
mov dword [esp + 0xb4], eax
jl 0x46e1ac
xor esi, esi
cmp dword [ebx + 0x230], esi
je 0x46f26e
mov ecx, dword [ebx + 0x110]
push esi
call fcn.0046a5b0
mov edx, dword [ebx + 0x354]
mov ecx, dword [ebx + 0x110]
push edx
call fcn.0046a630
mov eax, dword [ebx + 0x358]
mov ecx, dword [ebx + 0x110]
push eax
call fcn.0046a650
mov ecx, dword [ebx + 0x670230]
mov edx, dword [ebx + 0x240]
push ecx
mov ecx, dword [ebx + 0x248]
push edx
call 0xa7f3c0
mov ecx, dword [ebx + 0x2f0]
call fcn.0049f5b0
mov ecx, dword [ebx + 0x24c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x234]
mov eax, 0x21555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
cmp cl, dl
mov ecx, dword [ebx + 0x110]
push edx
mov edx, dword [ebx + 0x230]
push esi
push edx
push esi
push 4
call fcn.0046a960
mov ecx, dword [ebx + 0x24c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x110]
push 1
mov dword [ebx + 0x234], esi
mov dword [ebx + 0x230], esi
call fcn.0046a5b0
mov ecx, dword [ebx + 0x110]
push 5
call fcn.0046a630
mov ecx, dword [ebx + 0x110]
push 6
call fcn.0046a650
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x350
ret 4
mov ecx, dword [0x53251c]
push str.A3DSuperSpray::RenderParticles_now_you_can_only_use_A3DPARTICLE_STANDARD_PARTICLE_FACING_or_TETRA_
push ecx
call fcn.0047b060
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 4