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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, dword [0x65b33c]
push edi
lea eax, [esp + 0xcc]
mov ebx, ecx
push eax
mov dword [esp + 0x64], ebx
call esi
lea ecx, [esp + 0xf4]
push ecx
call esi
mov eax, dword [ebx + 0x88]
shr eax, 1
lea edx, [ebx + 0x114]
lea esi, [ebx + 0x138]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
jmp 0x47b364
mov esi, dword [esp + 0x14]
mov edi, dword [esi]
mov dword [esp + 0x30], 1
cmp edi, dword [esi + 4]
jbe 0x47b378
call fcn.005aec38
mov ebp, dword [esi - 0xc]
add esi, 0xfffffff4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
cmp dword [eax], edi
ja 0x47b391
cmp edi, edi
jbe 0x47b396
call fcn.005aec38
mov eax, dword [esi]
test ebp, ebp
je 0x47b3a0
cmp ebp, eax
je 0x47b3a5
call fcn.005aec38
cmp dword [esp + 0x28], edi
je 0x47b423
test ebp, ebp
jne 0x47b414
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x47b3c4
call fcn.005aec38
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
je 0x47b3f1
test ebp, ebp
jne 0x47b419
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x47b3e6
call fcn.005aec38
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
call fcn.00541110
test ebp, ebp
jne 0x47b41e
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x47b40a
call fcn.005aec38
add dword [esp + 0x28], 0x18
jmp 0x47b382
mov eax, dword [ebp]
jmp 0x47b3b6
mov eax, dword [ebp]
jmp 0x47b3d8
mov eax, dword [ebp]
jmp 0x47b3fc
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
cmp dword [ecx], eax
jbe 0x47b437
call fcn.005aec38
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov edi, dword [esi]
cmp ebp, dword [eax + 4]
jbe 0x47b449
call fcn.005aec38
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push edi
push ebp
push eax
lea eax, [esp + 0xfc]
push eax
mov ecx, esi
call fcn.0047af80
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [edi]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [0x842680]
call fcn.00527020
mov eax, dword [esp + 0x5c]
cmp eax, 0x15
jb 0x47b948
cmp eax, 0x16
jbe 0x47b4a3
cmp eax, 0x1a
jne 0x47b948
lea ebp, [eax - 0xa]
jmp 0x47b4a8
mov ebp, 0x20
mov eax, dword [edi]
mov ecx, dword [0x842680]
lea edx, [esp + 0x64]
push edx
push 0
push eax
call fcn.00527160
lea ecx, [esp + 0x6c]
push 0x80
push ecx
mov dword [esp + 0x18], eax
call fcn.0050cd20
push 0x27
push str.e:prg_vs2008kclib_dx9include..kcClassBasekcClassBase.h
push 0x58
call fcn.0051ee10
add esp, 0x14
test eax, eax
je 0x47b4f0
mov ecx, eax
call fcn.005410a0
mov edi, eax
jmp 0x47b4f2
xor edi, edi
mov edx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x124]
push 4
push edx
push eax
mov ecx, edi
call fcn.00543660
mov ecx, edi
call fcn.005673b0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, edi
mov dword [esp + 0x78], eax
call fcn.00541130
mov ecx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x124]
mov dword [esp + 0x88], ecx
mov ecx, edi
mov dword [esp + 0x84], eax
call fcn.0052a210
mov ecx, edi
mov dword [esp + 0x8c], eax
call fcn.00541150
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x98], edx
mov edx, dword [ebx + 0x124]
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x128]
lea edx, [esp + 0x6c]
shr ebp, 3
push edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x98], ebp
call fcn.00558940
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
add esp, 4
push ecx
mov ecx, dword [0x842680]
call fcn.00527210
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x50], ecx
xor ebp, ebp
push edx
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], eax
call fcn.00478f50
fild dword [ebx + 0x8c]
mov eax, dword [esp + 0x34]
mov ecx, eax
fsub qword [0x662638]
xor edi, edi
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x68]
fild dword [esp + 0x38]
test ecx, ecx
jge 0x47b64a
fadd dword [0x65b838]
fstp dword [esp + 0x38]
mov dword [esp + 0x1c], 1
cmp eax, 1
jbe 0x47b92c
nop
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x47b672
fadd dword [0x65b838]
fdiv dword [esp + 0x38]
fmul dword [esp + 0x68]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd qword [0x662638]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.005af050
cmp eax, dword [esp + 0x30]
je 0x47b919
mov ecx, eax
mov eax, dword [ebx + 0x124]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov edx, dword [ebx + 0x128]
push 0x27
push str.e:prg_vs2008kclib_dx9include..kcClassBasekcClassBase.h
push 0x58
mov dword [esp + 0x3c], ecx
inc eax
mov dword [esp + 0x38], eax
lea eax, [edx + ecx - 1]
cdq
idiv ecx
inc eax
mov dword [esp + 0x1c], eax
call fcn.0051ee10
add esp, 0xc
test eax, eax
je 0x47b6e9
mov ecx, eax
call fcn.005410a0
mov ebx, eax
jmp 0x47b6eb
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push 4
push eax
push ecx
mov ecx, ebx
call fcn.00543660
lea edx, [esp + 0x6c]
push 0x80
push edx
call fcn.0050cd20
add esp, 8
mov ecx, ebx
call fcn.005673b0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.00541130
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call fcn.0052a210
mov ecx, ebx
mov dword [esp + 0x8c], eax
call fcn.00541150
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x6c], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47b788
call fcn.005aec38
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.005673b0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47b7bc
call fcn.005aec38
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x9c], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47b7ea
call fcn.005aec38
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 0x10]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47b828
call fcn.005aec38
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0xac], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47b856
call fcn.005aec38
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 0x10]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0xb0], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47b884
call fcn.005aec38
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.0052a210
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0xb4], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47b8b8
call fcn.005aec38
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.00541150
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x98], eax
call fcn.00558940
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
add esp, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
mov dword [esp + 0x50], ecx
push edx
mov ecx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
call fcn.00478f50
mov ebx, dword [esp + 0x60]
inc edi
add ebp, 0x18
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x34]
jb 0x47b660
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 4
add dword [esp + 0x14], 0x18
inc eax
cmp eax, 1
mov dword [esp + 0x18], eax
jl 0x47b360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret