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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1b4
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], 0
lea edi, [esi + 0x114]
mov ebx, 5
mov eax, dword [edi]
test eax, eax
je 0x490728
xor ecx, ecx
mov cx, word [eax + 0xa]
test cx, cx
lea edx, [ecx - 1]
mov word [eax + 0xa], dx
jne 0x490722
mov eax, dword [eax + 0x5c]
push 0xae
push 0x68b520
push eax
call fcn.00620150
add esp, 0xc
mov dword [edi], 0
add edi, 4
dec ebx
jne 0x4906f4
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
imul eax, eax, 0x44
cmp word [eax + ecx*8 + 0x6b88ec], 4
jne 0x490752
mov dword [esi + 0x8c], 0
mov edx, dword [esi + 0x8c]
movzx eax, word [eax + edx*8 + 0x6b88ec]
cmp eax, 3
ja case.default.0x490765
jmp dword [eax*4 + 0x491044]
push 0x68d0f4
jmp 0x49077f
push str.WoodDummy
jmp 0x49077f
push str.GroundDummy
call fcn.005f1f70
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
imul eax, eax, 0x44
movzx edx, word [eax + ecx*8 + 0x6b88ee]
lea eax, [eax + ecx*8 + 0x6b88ee]
mov ecx, dword [esi + 0xf8]
test ecx, ecx
mov dword [esi + 0x90], edx
je 0x49103b
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49103b
cmp word [eax], 2
mov dword [esp + 0x3c], 0
jne 0x490802
call fcn.005f2010
push 0
cdq
push 0x64
push edx
push eax
call fcn.00671a00
push 0
push bind
push edx
push eax
call fcn.00671360
xor ecx, ecx
cmp eax, 0x32
setl cl
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x6f2258]
lea edx, [esp + 0xb0]
push edx
call fcn.005efd30
lea eax, [esp + 0xb0]
lea ecx, [esi + 0xa0]
push eax
call fcn.004011d0
test al, al
jne 0x49083b
movaps xmm0, xmmword [esi + 0xe0]
movaps xmmword [esp + 0xb0], xmm0
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
imul ecx, ecx, 0x44
cmp word [ecx + edx*8 + 0x6b88ee], 0
mov dword [esp + 0x20], 0
jbe 0x49103b
lea eax, [esp + 0x140]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x114]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xf8]
push 0
push 8
push ecx
call dword [esp + 0x30]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x490ffd
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
imul edx, edx, 0x44
movzx eax, word [edx + eax*8 + 0x6b88ec]
mov ecx, dword [esi + 0xf8]
add ax, 0x200
push eax
push 0
call fcn.0060dad0
mov ebx, eax
test ebx, ebx
je case.default.0x490f0f
mov ecx, dword [esp + 0x34]
push edi
call fcn.00401a50
mov ecx, dword [esi + 0xf8]
sub ebx, dword [ecx + 0x6c]
mov eax, 0x2aaaaaab
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push eax
push edi
call fcn.00616540
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
imul ecx, ecx, 0x44
lea ecx, [ecx + edx*8]
movzx eax, word [ecx + 0x6b88f2]
cmp eax, 6
mov dword [esp + 0x18], eax
ja case.default.0x490918
jmp dword [eax*4 + 0x491054]
mov ecx, dword [esi + 0xf8]
push 0x8005
push 0
call fcn.0060da90
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x40], xmm0
jmp case.default.0x490918
cmp word [ecx + 0x6b88ee], 2
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xf8]
jne 0x49097b
mov eax, dword [esp + 0x3c]
lea eax, [eax + edx*2 + 1]
and eax, 0x7ff
or eax, 0x8000
push eax
push 0
call fcn.0060da90
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x40], xmm0
jmp case.default.0x490918
inc edx
and edx, 0x7ff
or edx, 0x8000
push edx
push 0
call fcn.0060da90
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x40], xmm0
jmp case.default.0x490918
mov ecx, dword [esi + 0xf8]
push 0x8005
push 0
call fcn.0060da90
movaps xmm0, xmmword [eax + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, eax
and ecx, 0x80000001
jns 0x4909c7
dec ecx
or ecx, 0xfffffffe
inc ecx
movss xmm1, dword [0x68b4fc]
je 0x490a29
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
movss dword [esp + 0x60], xmm1
fild dword [esp + 0x18]
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x64], xmm1
fmul dword [0x68b5ec]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
movss dword [esp + 0x68], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x6c], xmm1
movaps xmm1, xmmword [esp + 0x60]
addps xmm0, xmm1
movaps xmmword [esp + 0x40], xmm0
jmp case.default.0x490918
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
movss dword [esp + 0x90], xmm1
fild dword [esp + 0x18]
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x94], xmm1
fmul dword [0x68b5ec]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
movss dword [esp + 0x98], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0x9c], xmm1
movaps xmm1, xmmword [esp + 0x90]
subps xmm0, xmm1
movaps xmmword [esp + 0x40], xmm0
jmp case.default.0x490918
mov ebx, 1
call fcn.005f2050
fadd st(0), st(0)
fstp dword [esp + 0x18]
call fcn.005f2050
fadd st(0), st(0)
lea edx, [esp + 0x40]
push edx
fsub dword [0x68b500]
lea ecx, [esi + 0xa0]
fmul dword [esi + 0xf0]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fsub dword [0x68b500]
fmul dword [esi + 0xf0]
fstp dword [esp + 0x1c]
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x90], xmm0
movaps xmm0, xmmword [esp + 0x84]
movaps xmm1, xmm0
movaps xmm0, xmmword [esi + 0xe0]
addps xmm0, xmm1
movaps xmmword [esp + 0x44], xmm0
call fcn.004011d0
test al, al
jne 0x490b3b
xor ebx, ebx
mov ecx, dword [0x6f2258]
lea eax, [esp + 0x130]
push eax
call fcn.005efd30
movaps xmm2, xmmword [eax]
movaps xmm1, xmmword [esp + 0x40]
movaps xmm0, xmm1
subps xmm0, xmm2
mulps xmm0, xmm0
movaps xmm2, xmm0
movaps xmm3, xmm0
shufps xmm2, xmm0, 0xaa
shufps xmm3, xmm0, 0x55
addss xmm0, xmm3
addss xmm0, xmm2
movaps xmmword [esp + 0xf0], xmm0
fld dword [esp + 0xf0]
fcomp dword [0x68b7fc]
fnstsw ax
test ah, 5
jp 0x490b93
xor ebx, ebx
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x490be8
lea ecx, [esp + 0x140]
movaps xmm2, xmmword [ecx]
movaps xmm0, xmm1
subps xmm0, xmm2
mulps xmm0, xmm0
movaps xmm2, xmm0
movaps xmm3, xmm0
shufps xmm2, xmm0, 0xaa
shufps xmm3, xmm0, 0x55
addss xmm0, xmm3
addss xmm0, xmm2
movaps xmmword [esp + 0x110], xmm0
fld dword [esp + 0x110]
fcomp dword [0x68b5ec]
fnstsw ax
test ah, 5
jp 0x490be2
xor ebx, ebx
add ecx, 0x10
dec edx
jne 0x490ba2
test ebx, ebx
je case.0x490918.4
mov ecx, dword [esp + 0x28]
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [ecx], xmm0
jmp case.default.0x490918
xor edx, edx
cmp eax, 3
setne dl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x20]
and edx, 0x80000001
jns 0x490c26
dec edx
or edx, 0xfffffffe
inc edx
mov dword [esp + 0x58], edx
lea ebx, [ebx]
cmp word [ecx + 0x6b88ee], 4
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], 0x40060a92
jb 0x490c52
mov dword [esp + 0x30], 0x40490fdb
cmp eax, 6
jne 0x490c5f
mov dword [esp + 0x30], 0
mov eax, dword [0x6f2258]
movaps xmm0, xmmword [eax + 0x30]
movaps xmmword [esp + 0x120], xmm0
call fcn.005f2050
fmul dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
fmul dword [0x68b504]
lea ecx, [esp + 0x184]
fsubp st(1)
fstp dword [esp]
push ecx
call fcn.00603c20
movaps xmm0, xmmword [esp + 0x128]
movaps xmm2, xmmword [eax + 0x20]
movaps xmm3, xmmword [eax + 0x10]
mov edx, dword [esp + 0x64]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xaa
mulps xmm2, xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x55
mulps xmm3, xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 0
movaps xmm0, xmmword [eax]
mov eax, dword [esp + 0x60]
add esp, 8
cmp eax, edx
addps xmm3, xmm2
mulps xmm0, xmm1
addps xmm0, xmm3
jne 0x490ce5
xorps xmm1, xmm1
subps xmm1, xmm0
movaps xmm0, xmm1
mov eax, dword [esi + 0x88]
fld dword [0x68b7fc]
mov ecx, dword [esi + 0x8c]
imul eax, eax, 0x44
lea ecx, [eax + ecx*8]
cmp word [ecx + 0x6b88ec], 3
jne 0x490d1e
movzx edx, word [ecx + 0x6b88ee]
fstp st(0)
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fmul dword [0x68b7fc]
mov ebx, dword [esp + 0x20]
fstp dword [esp + 0x1c]
test ebx, ebx
lea eax, [esp + 0x1c]
movss xmm1, dword [eax]
movaps xmm2, xmm1
shufps xmm2, xmm1, 0
movaps xmm1, xmmword [esp + 0xb0]
mulps xmm0, xmm2
addps xmm1, xmm0
movaps xmmword [esp + 0x40], xmm1
jle 0x490dd5
lea edx, [esp + 0x140]
movaps xmm2, xmmword [edx]
movaps xmm0, xmm1
subps xmm0, xmm2
mulps xmm0, xmm0
movaps xmm2, xmm0
movaps xmm3, xmm0
shufps xmm2, xmm0, 0xaa
shufps xmm3, xmm0, 0x55
addss xmm0, xmm3
addss xmm0, xmm2
movaps xmmword [esp + 0x100], xmm0
fld dword [esp + 0x100]
fcomp dword [0x68d8e4]
fnstsw ax
test ah, 5
jp 0x490d9d
mov dword [esp + 0x38], 0
add edx, 0x10
dec ebx
jne 0x490d57
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x490dd5
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, 0x14
mov eax, dword [esp + 0x18]
jle 0x490c30
movaps xmm0, xmmword [esi + 0xe0]
movaps xmmword [esp + 0xb0], xmm0
jmp 0x490c30
mov ecx, dword [esp + 0x28]
movaps xmmword [ecx], xmm1
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [0x68b500]
movss dword [esp + 0x7c], xmm0
movaps xmm2, xmmword [esp + 0x70]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x39
movaps xmm1, xmm0
shufps xmm1, xmm0, 0x39
movaps xmm3, xmm1
shufps xmm3, xmm1, 0x39
movaps xmmword [edi + 0x10], xmm3
movaps xmmword [edi + 0x20], xmm1
movaps xmmword [edi + 0x30], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [0x68b7ec]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [0x68b4fc]
movss dword [esp + 0xac], xmm0
movaps xmm0, xmmword [esp + 0xa0]
movaps xmm1, xmm0
movaps xmm0, xmmword [esp + 0x40]
subps xmm0, xmm1
movss xmm1, dword [0x68b500]
movss dword [esp + 0xc0], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0xc4], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0xc8], xmm1
movss xmm1, dword [0x68b4fc]
movss dword [esp + 0xcc], xmm1
movaps xmm1, xmmword [esp + 0xc0]
movaps xmmword [edi + 0x40], xmm2
shufps xmm1, xmm0, 0xe0
shufps xmm0, xmm1, 0x24
movaps xmmword [edi + 0x40], xmm0
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x8c]
imul edx, edx, 0x44
lea eax, [edx + eax*8]
movzx ecx, word [eax + 0x6b88ec]
cmp ecx, 3
ja case.default.0x490f0f
jmp dword [ecx*4 + 0x491070]
movzx ecx, word [eax + 0x6b88f0]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
jmp 0x490f58
movzx edx, word [eax + 0x6b88f0]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jmp 0x490f58
movzx eax, word [eax + 0x6b88f0]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jmp 0x490f58
movzx ecx, word [eax + 0x6b88f0]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fstp dword [edi + 0xb8]
movaps xmm0, xmmword [esi + 0xa0]
movaps xmmword [edi + 0xd0], xmm0
movaps xmm0, xmmword [esi + 0xb0]
movaps xmmword [edi + 0xe0], xmm0
movaps xmm0, xmmword [esi + 0xc0]
movaps xmmword [edi + 0xf0], xmm0
movaps xmm0, xmmword [esi + 0xd0]
movaps xmmword [edi + 0x100], xmm0
mov ecx, edi
call fcn.005efff0
xor ebx, ebx
push ebx
push edi
mov ecx, 0x725b20
call fcn.005f2300
mov eax, dword [edi]
cmp eax, ebx
mov dword [esp + 0xd0], 0x6d61
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
je 0x490ffd
lea edx, [esp + 0xd0]
push edx
push 0xb
push edi
call eax
add esp, 0xc
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
imul ecx, ecx, 0x44
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
movzx ecx, word [ecx + edx*8 + 0x6b88ee]
inc eax
add ebx, 4
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], edi
jl 0x490876
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret