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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x554
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x550], eax
xor eax, eax
mov word [esp + 0x320], 2
mov dword [esp + 0x31c], eax
mov dword [esp + 0x322], eax
mov word [esp + 0x342], ax
mov dword [esp + 0x40c], eax
mov dword [esp + 0x412], eax
mov word [esp + 0x43a], ax
mov dword [esp + 0x43c], eax
mov dword [esp + 0x442], eax
mov word [esp + 0x46a], ax
mov dword [esp + 0x46c], eax
mov dword [esp + 0x472], eax
mov word [esp + 0x49a], ax
lea eax, [esp + 0x31c]
mov dword [esp + 8], eax
lea eax, [esp + 0x40c]
push ebx
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
lea eax, [esp + 0x444]
mov dword [esp + 0x32e], 0x4000c
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x478]
push 0x130
mov dword [esp + 0x24], eax
lea eax, [esp + 0x84]
push 0
push eax
mov dword [esp + 0x342], 2
mov dword [esp + 0x346], 0x20010
mov dword [esp + 0x34a], 3
mov dword [esp + 0x34e], 0x1001c
mov dword [esp + 0x352], 0xff0005
mov dword [esp + 0x356], 0x110000
mov word [esp + 0x428], 2
mov dword [esp + 0x42e], 0xc
mov dword [esp + 0x432], 1
mov dword [esp + 0x436], 0x40010
mov dword [esp + 0x43a], 2
mov dword [esp + 0x43e], 0x20014
mov dword [esp + 0x442], 3
mov dword [esp + 0x446], 0x10020
mov dword [esp + 0x44a], 0xff0005
mov dword [esp + 0x44e], 0x110000
mov word [esp + 0x458], 2
mov dword [esp + 0x45e], 0x1000c
mov dword [esp + 0x462], 1
mov dword [esp + 0x466], 0x40014
mov dword [esp + 0x46a], 2
mov dword [esp + 0x46e], 0x20018
mov dword [esp + 0x472], 3
mov dword [esp + 0x476], 0x10024
mov dword [esp + 0x47a], 0xff0005
mov dword [esp + 0x47e], 0x110000
mov word [esp + 0x488], 2
mov dword [esp + 0x48e], 0x2000c
mov dword [esp + 0x492], 1
mov dword [esp + 0x496], 0x40018
mov dword [esp + 0x49a], 2
mov dword [esp + 0x49e], 0x2001c
mov dword [esp + 0x4a2], 3
mov dword [esp + 0x4a6], 0x10028
mov dword [esp + 0x4aa], 0xff0005
mov dword [esp + 0x4ae], 0x110000
mov dword [esi + 0x9f0], 0x10
call fcn.00468b40
mov eax, dword [esi + 0x10c]
lea edx, [esp + 0x8c]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [esp + 0x144], 0xfffe0101
jb 0x4bf95d
mov dword [esi + 0x9f0], 0
mov dword [esi + 0x9f4], 8
cmp dword [esi + 0x4e8], 0
jne 0x4bfaf0
push str.VertexShader_HW_Accel_Enabled_r_n
jmp 0x4bf96f
cmp dword [esi + 0x4e8], 0
jne 0x4bfaf0
push str.VertexShader_SW_Mode__r_n
call fcn.00586620
add esp, 4
cmp dword [esi + 0x4e8], 0
jne 0x4bfaf0
xor eax, eax
mov dword [esp + 0xc], 0x4e8
mov dword [esp + 0x10], eax
lea edi, [eax + 1]
mov dword [esp + 0x24], 0
push edi
lea eax, [esp + 0x4dc]
mov dword [esp + 0x30], edi
push str.Shader_skinmesh_d.bin
push eax
call fcn.0045d4e0
add esp, 0xc
lea eax, [esp + 0x28]
push 0
push eax
push 0
push 0x40
lea eax, [esp + 0x4e8]
push 0x8000
push eax
call fcn.00476d25
mov ebx, dword [esp + 0x40]
add esp, 0x18
test eax, eax
mov eax, 0xffffffff
cmovne ebx, eax
cmp ebx, eax
je 0x4c03ac
push ebx
call fcn.0047792c
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00406b2d
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x24]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
push edi
push eax
push ebx
call fcn.00477e13
add esp, 0xc
push ebx
call fcn.00477179
mov edx, dword [esi + 0x10c]
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 0x158]
mov eax, dword [esp + 0xc]
add eax, 0x20
add eax, esi
push eax
mov eax, dword [esp + 0x14]
and eax, reloc.WSOCK32.dll_closesocket
jns 0x4bfa53
dec eax
or eax, 0xfffffffc
inc eax
push dword [esp + eax*4 + 0x18]
push edx
call ecx
test eax, eax
js 0x4c03ba
mov ebx, dword [esi + 0x10c]
mov eax, dword [ebx]
mov edi, dword [eax + 0x16c]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 0xc]
add ecx, esi
push ecx
push eax
push ebx
call edi
test eax, eax
js 0x4c03ba
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
add edi, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
cmp edi, 0x508
jl 0x4bf992
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esi + 0x390]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040226b
mov eax, dword [esi + 0x10c]
lea edx, [esp + 0x30]
push 4
push edx
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x178]
xor eax, eax
mov word [esp + 0x20c], 2
mov dword [esp + 0x208], eax
mov dword [esp + 0x20e], eax
mov dword [esp + 0x212], 0x4000c
mov dword [esp + 0x216], 0xa
mov dword [esp + 0x21a], 0x10010
mov dword [esp + 0x21e], 0xff0005
mov dword [esp + 0x222], 0x110000
mov word [esp + 0x226], ax
mov dword [esp + 0x228], eax
mov word [esp + 0x22c], 2
mov dword [esp + 0x22e], eax
mov dword [esp + 0x232], 0x2000c
mov dword [esp + 0x236], 3
mov dword [esp + 0x23a], 0x10018
mov dword [esp + 0x23e], 0xff0005
mov dword [esp + 0x242], 0x110000
mov word [esp + 0x246], ax
mov dword [esp + 0x1b0], eax
mov word [esp + 0x1b4], 2
mov dword [esp + 0x1b6], 0xff0000
mov dword [esp + 0x1ba], 0x110000
mov word [esp + 0x1be], ax
mov dword [esp + 0x1c0], eax
mov word [esp + 0x1c4], 2
mov dword [esp + 0x1c6], eax
mov dword [esp + 0x1ca], 0x1000c
mov dword [esp + 0x1ce], 0xff0005
mov dword [esp + 0x1d2], 0x110000
mov word [esp + 0x1d6], ax
mov dword [esp + 0x248], eax
mov word [esp + 0x24c], 2
mov dword [esp + 0x24e], eax
mov dword [esp + 0x252], 0x4000c
mov dword [esp + 0x256], 0xa
mov dword [esp + 0x25a], 0x10010
mov dword [esp + 0x25e], 0xff0005
mov dword [esp + 0x262], 0x110000
mov word [esp + 0x266], ax
mov dword [esp + 0x4a8], eax
mov word [esp + 0x4ac], 2
mov dword [esp + 0x4ae], eax
mov dword [esp + 0x4b2], 0x4000c
mov dword [esp + 0x4b6], 0xa
mov dword [esp + 0x4ba], 0x10010
mov dword [esp + 0x4be], 5
mov dword [esp + 0x4c2], 0x10018
mov dword [esp + 0x4c6], 0x105
mov dword [esp + 0x4ca], 0x10020
mov dword [esp + 0x4ce], 0xff0205
mov dword [esp + 0x4d2], 0x110000
mov word [esp + 0x4d6], ax
mov dword [esp + 0x1d8], eax
mov word [esp + 0x1dc], 2
mov dword [esp + 0x1de], eax
mov dword [esp + 0x1e2], 0x1000c
mov dword [esp + 0x1e6], 0xff0005
mov dword [esp + 0x1ea], 0x110000
mov word [esp + 0x1ee], ax
mov dword [esp + 0x350], eax
mov word [esp + 0x354], 2
mov dword [esp + 0x356], eax
mov dword [esp + 0x35a], 0x2000c
mov dword [esp + 0x35e], 3
mov dword [esp + 0x362], 0x10018
mov dword [esp + 0x366], 5
mov dword [esp + 0x36a], 0x20020
mov dword [esp + 0x36e], 0xff0006
mov dword [esp + 0x372], 0x110000
mov word [esp + 0x376], ax
mov dword [esp + 0x268], eax
mov word [esp + 0x26c], 2
mov dword [esp + 0x26e], eax
mov dword [esp + 0x272], 0x2000c
mov dword [esp + 0x276], 3
mov dword [esp + 0x27a], 0x10018
mov dword [esp + 0x27e], 0xff0005
mov dword [esp + 0x282], 0x110000
mov word [esp + 0x286], ax
mov dword [esp + 0x288], eax
mov word [esp + 0x28c], 2
mov dword [esp + 0x28e], eax
mov dword [esp + 0x292], 0x2000c
mov dword [esp + 0x296], 3
mov dword [esp + 0x29a], 0x10018
mov dword [esp + 0x29e], 0xff0005
mov dword [esp + 0x2a2], 0x110000
mov word [esp + 0x2a6], ax
mov dword [esp + 0x2a8], eax
mov word [esp + 0x2ac], 2
mov dword [esp + 0x2ae], eax
mov dword [esp + 0x2b2], 0x1000c
mov dword [esp + 0x2b6], 5
mov dword [esp + 0x2ba], 0x10014
mov dword [esp + 0x2be], 0xff0105
mov dword [esp + 0x2c2], 0x110000
mov word [esp + 0x2c6], ax
mov dword [esp + 0x378], eax
mov word [esp + 0x37c], 2
mov dword [esp + 0x37e], eax
mov dword [esp + 0x382], 0x2000c
mov dword [esp + 0x386], 3
mov dword [esp + 0x38a], 0x40018
mov dword [esp + 0x38e], 0xa
mov dword [esp + 0x392], 0x1001c
mov dword [esp + 0x396], 0xff0005
mov dword [esp + 0x39a], 0x110000
mov word [esp + 0x39e], ax
mov dword [esp + 0x1f0], eax
mov word [esp + 0x1f4], 2
mov dword [esp + 0x1f6], eax
mov dword [esp + 0x1fa], 0x1000c
mov dword [esp + 0x1fe], 0xff0005
mov dword [esp + 0x202], 0x110000
mov word [esp + 0x206], ax
mov dword [esp + 0x2c8], eax
mov word [esp + 0x2cc], 2
mov dword [esp + 0x2ce], eax
mov dword [esp + 0x2d2], 0x2000c
mov dword [esp + 0x2d6], 3
mov dword [esp + 0x2da], 0x10018
mov dword [esp + 0x2de], 0xff0005
mov dword [esp + 0x2e2], 0x110000
mov word [esp + 0x2e6], ax
mov dword [esp + 0x2e8], eax
mov word [esp + 0x2ec], 2
mov dword [esp + 0x2ee], eax
mov dword [esp + 0x2f2], 0x2000c
mov dword [esp + 0x2f6], 3
mov dword [esp + 0x2fa], 0x10018
mov dword [esp + 0x2fe], 0xff0005
mov dword [esp + 0x302], 0x110000
mov word [esp + 0x306], ax
mov dword [esp + 0x3a0], eax
mov word [esp + 0x3a4], 2
mov dword [esp + 0x3a6], eax
mov dword [esp + 0x3aa], 0x4000c
mov dword [esp + 0x3ae], 0xa
mov dword [esp + 0x3b2], 0x10010
mov dword [esp + 0x3b6], 5
mov dword [esp + 0x3ba], 0x10018
mov dword [esp + 0x3be], 0xff0105
mov dword [esp + 0x3c2], 0x110000
mov word [esp + 0x3c6], ax
mov dword [esp + 0x3c8], eax
mov word [esp + 0x3cc], 2
mov dword [esp + 0x3ce], eax
mov dword [esp + 0x3d2], 0x2000c
mov dword [esp + 0x3d6], 3
mov dword [esp + 0x3da], 0x10018
mov dword [esp + 0x3de], 5
mov dword [esp + 0x3e2], 0x10020
mov dword [esp + 0x3e6], 0xff0105
mov dword [esp + 0x3ea], 0x110000
mov word [esp + 0x3ee], ax
mov dword [esp + 0x308], eax
mov word [esp + 0x30c], 2
mov dword [esp + 0x30e], eax
mov dword [esp + 0x312], 0x1000c
mov dword [esp + 0x316], 5
mov dword [esp + 0x31a], 0x10014
cmp dword [esi + 0x538], 0
mov word [esp + 0x326], ax
mov dword [esp + 0x3f0], eax
mov dword [esp + 0x3f6], eax
mov word [esp + 0x416], ax
lea eax, [esp + 0x208]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x228]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1b0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c0]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x248]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x4a8]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1d8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x350]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x268]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x288]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2a8]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x378]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x1f0]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x2c8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x2e8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x3a0]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x3c8]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x308]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x3f0]
mov dword [esp + 0x31e], 0xff0105
mov dword [esp + 0x322], 0x110000
mov word [esp + 0x3f4], 2
mov dword [esp + 0x3fa], 0x4000c
mov dword [esp + 0x3fe], 0xa
mov dword [esp + 0x402], 0x10010
mov dword [esp + 0x406], 5
mov dword [esp + 0x40a], 0x10018
mov dword [esp + 0x40e], 0xff0105
mov dword [esp + 0x412], 0x110000
mov dword [esp + 0x78], eax
jne 0x4c0392
xor eax, eax
mov dword [esp + 0x10], eax
nop dword [eax + eax]
lea edi, [eax + 1]
mov dword [esp + 0x24], 0
push edi
lea eax, [esp + 0x4dc]
mov dword [esp + 0x10], edi
push str.Shader_vseffect_d.bin
push eax
call fcn.0045d4e0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0
push eax
push 0
push 0x40
lea eax, [esp + 0x4e8]
push 0x8000
push eax
call fcn.00476d25
mov ebx, dword [esp + 0x44]
add esp, 0x18
test eax, eax
mov eax, 0xffffffff
cmovne ebx, eax
cmp ebx, eax
je 0x4c03ac
push ebx
call fcn.0047792c
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00406b2d
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x24]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
push edi
push eax
push ebx
call fcn.00477e13
add esp, 0xc
push ebx
call fcn.00477179
mov edx, dword [esi + 0x10c]
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 0x158]
mov eax, dword [esp + 0x10]
lea ebx, [eax*4]
lea eax, [ebx + 0x528]
mov dword [esp + 0x28], ebx
add eax, esi
push eax
push dword [esp + ebx + 0x34]
push edx
call ecx
test eax, eax
js 0x4c03ba
mov ebx, dword [esi + 0x10c]
mov eax, dword [ebx]
mov edi, dword [eax + 0x16c]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x28]
add ecx, 0x538
add ecx, esi
push ecx
push eax
push ebx
call edi
test eax, eax
js 0x4c03ba
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
cmp eax, 4
jl 0x4c0280
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push edi
push str.Read_VertexShader__d_Error..__r_n
call fcn.00586620
add esp, 8
mov ecx, dword [esp + 0x55c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret