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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x716fe1
push eax
mov eax, dword [0x7b92a0]
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x474ed9
mov eax, dword [esp + 0xb0]
push eax
call fcn.0046f900
jmp 0x475435
mov ecx, dword [0x73f274]
mov edx, dword [0x73f270]
push ecx
push edx
call dword [0x73d38c]
mov eax, dword [0x7b92a0]
mov ecx, dword [eax + 0x80]
call fcn.004a28a0
push eax
lea ecx, [esp + 0x30]
call fcn.0046d250
cmp dword [esp + 0x30], ebx
mov dword [esp + 0xa8], ebx
jne 0x474f29
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0046fa40
add esp, 4
jmp 0x47541c
call fcn.0046eda0
test eax, eax
je 0x47541c
mov edx, dword [0x78d450]
push ebp
mov ebp, dword [0x73d22c]
push esi
push edi
push edx
call ebp
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov esi, eax
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x48], esi
je 0x474f66
mov edi, dword [esi + 4]
test byte [0x8301ac], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jne 0x474fd7
or dword [0x8301ac], 1
push 0x201c
mov byte [esp + 0xb8], 1
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0xb4], 2
je 0x474fc8
mov ecx, dword [0x830558]
push ecx
push str.__VP1.0__This_is_the_vertex_program_for_transforming_light_halfangle_vectors_into_tangent_space._nDP4___o_HPOS_.x__c_0___v_OPOS__DP4___o_HPOS_.y__c_1___v_OPOS__DP4___o_HPOS_.z__c_2___v_OPOS__DP4___o_HPOS_.w__c_3___v_OPOS__ADD__R0__c_12____v_OPOS__DP3___R0.w__R0__R0_RSQ___R1.w__R0.w_DST_R2__R0.w__R1.w_DP3_R2.w__R2__c_14__RCP_R2.w__R2.w_MOV___R4.xyzw__R2.wwww_MUL___R0__R0__R1.w_MOV___R0.w__c_17_.x_DP3___R1.x__v_TEX4___R0_DP3___R1.y__v_TEX5___R0_DP3___R1.z__v_TEX6___R0_MOV___R1.w__c_17_.x_MOV___o_TEX1___R1_DP4___R10.x__c_8___v_OPOS__DP4___R10.y__c_9___v_OPOS__DP4___R10.z__c_10___v_OPOS__DP4___R10.w__c_11___v_OPOS__DP3___R11.x__c_8___v_NRML__DP3___R11.y__c_9___v_NRML__DP3___R11.z__c_10___v_NRML__DP3___R1.w__R10__R10_RSQ___R1.w__R1.w_RCP___R1.w__R1.w_MOV_o_FOGC___R1.w_MOV___o_COL1___R4_MOV___R9__v_COL0__MOV___o_TEX0___v_TEX0__MOV___o_TEX2___v_TEX1__MOV___o_TEX3___v_TEX0__
mov ecx, eax
call fcn.004a27d0
jmp 0x474fca
xor eax, eax
mov dword [0x8301a8], eax
mov byte [esp + 0xb4], 0
mov edx, dword [0x78d46c]
push edx
call dword [0x73d390]
cmp edi, ebx
je 0x475002
add edi, 0x8c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov eax, dword [0x78d44c]
push eax
call dword [0x73d37c]
mov edx, dword [0x78d44c]
movzx ecx, al
push edx
mov dword [esp + 0x48], ecx
call ebp
push 1
call fcn.00425250
mov eax, dword [0x73f398]
mov edi, dword [0x73d260]
add esp, 4
push eax
call edi
mov ecx, dword [0x73f3b8]
push ecx
call edi
mov edx, dword [0x73f3bc]
push edx
call edi
mov eax, dword [0x73f3c0]
push eax
call edi
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [0x7b92a0]
mov edi, dword [edi + 0xa4]
mov eax, dword [eax + 0x10]
push ecx
push edx
push edi
push eax
push 8
call dword [0x7a47e0]
mov eax, dword [0x7b92a0]
mov ecx, dword [eax + 0x60]
add esp, 0x14
cmp ecx, ebx
mov dword [esp + 0x10], 0x3f800000
jne 0x475092
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x68]
mov eax, dword [eax + 0x64]
push 0x3f000000
push ecx
push edx
push eax
push 0x10
call fcn.0044f820
push ebx
push ebx
push 0xbf800000
push 0x3f800000
push 0x11
call fcn.0044f820
add esp, 0x28
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edx, dword [esi]
push ecx
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [0x7bb4e8]
fld dword [eax + 0x84]
lea edx, [esp + 0x20]
fsub dword [esp + 0x1c]
push edx
fld dword [eax + 0x80]
lea ecx, [esp + 0x90]
fsub dword [esp + 0x1c]
fld dword [eax + 0x7c]
lea eax, [esp + 0x5c]
fsub dword [esp + 0x18]
push eax
push ecx
fstp dword [esp + 0x2c]
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
call fcn.004a9b50
add esp, 8
push eax
lea edx, [esp + 0x54]
push edx
call fcn.004a9bb0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, ebx
jle 0x47536e
lea ebx, [ebx]
mov eax, dword [0x7b92a0]
mov ecx, dword [eax + 0x80]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, dword [0x8301a8]
push 1
push esi
call fcn.004a24d0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebx*4]
add ecx, 0x94
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
mov dword [esp + 0x20], edx
fsub dword [esp + 0x18]
lea edx, [esp + 0x74]
fld dword [esp + 0x20]
push edx
fsub dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
fstp dword [esp + 0x7c]
push ecx
fstp dword [esp + 0x84]
fstp dword [esp + 0x88]
call fcn.004a9b50
add esp, 8
push eax
lea edx, [esp + 0x94]
push edx
call fcn.004a9bb0
fld dword [esp + 0x40]
fmul dword [0x78e648]
mov esi, dword [eax]
fld dword [esp + 0x3c]
mov edi, dword [eax + 4]
fmul dword [0x78e648]
mov ebp, dword [eax + 8]
fld dword [esp + 0x38]
mov eax, dword [esp + 0x44]
fmul dword [0x78e648]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x74]
push ecx
fstp dword [esp + 0x78]
add eax, 0x4c
push eax
fstp dword [esp + 0x80]
lea edx, [esp + 0x94]
push edx
fstp dword [esp + 0x88]
call fcn.004ab1e0
lea eax, [esp + 0x98]
push 0x3f800000
push eax
call dword [0x7a47dc]
mov eax, dword [0x78e5ec]
add esp, 0x20
test eax, eax
push 0x3f800000
push ebp
push edi
push esi
push 0xc
push 0x8620
je 0x47528c
call dword [0x7bb850]
jmp 0x475292
call dword [0x7bb7ac]
mov eax, dword [0x78e5ec]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push 0x3f800000
push ecx
push edx
test eax, eax
mov eax, dword [esp + 0x58]
push eax
push 0xd
push 0x8620
je 0x4752be
call dword [0x7bb850]
jmp 0x4752c4
call dword [0x7bb7ac]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + ebx*4]
fld dword [edx + 0x58]
mov eax, dword [0x78e5ec]
test eax, eax
fld st(0)
fmul st(1)
push 0x3f800000
fadd st(0), st(0)
fdivr dword [0x742f00]
fstp dword [esp + 0x14]
fstp st(0)
je 0x475309
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x3f800000
push 0xe
push 0x8620
call dword [0x7bb850]
jmp 0x475322
mov ecx, dword [esp + 0x14]
push ecx
push 0
push 0x3f800000
push 0xe
push 0x8620
call dword [0x7bb7ac]
mov edx, dword [esp + 0xbc]
push edx
call fcn.0046f900
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x475346
mov eax, dword [0x78d44c]
push eax
call dword [0x73d390]
mov ecx, dword [0x7b92a0]
mov ecx, dword [ecx + 0x80]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jl 0x475170
mov ebp, dword [0x73d22c]
call fcn.0045f710
test eax, eax
je 0x475382
push 0x84c1
call dword [0x7bb6b0]
mov eax, dword [0x73f398]
mov edi, dword [0x73d264]
push eax
mov dword [0x7a6898], 1
call edi
call fcn.0045f710
test eax, eax
je 0x4753ae
push 0x84c0
call dword [0x7bb6b0]
mov ecx, dword [0x73f3b8]
xor ebx, ebx
push ecx
mov dword [0x7a6898], ebx
call edi
mov edx, dword [0x73f3bc]
push edx
call edi
mov eax, dword [0x73f3c0]
push eax
call edi
mov ecx, dword [0x7b92a0]
mov edx, dword [ecx]
call dword [edx + 0x124]
push ebx
push ebx
push ebx
push ebx
push 0x20
call dword [0x7a47e0]
push ebx
push ebx
push ebx
push ebx
push 0xd
call dword [0x7a47e0]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x7a47e0]
mov eax, dword [0x78d46c]
add esp, 0x3c
push eax
call ebp
mov ecx, dword [esi + 0x44]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0xb4]
pop edi
pop esi
pop ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0xa8], 0xffffffff
je 0x475438
push eax
call fcn.006fa390
add esp, 4
mov ecx, dword [esp + 0xa0]
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret