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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, dword [0x608334]
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 0x471754
mov esi, dword [esp + 0x14]
mov edi, dword [esi]
mov dword [esp + 0x30], 1
cmp edi, dword [esi + 4]
jbe 0x471768
call fcn.0055d9b4
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 0x471781
cmp edi, edi
jbe 0x471786
call fcn.0055d9b4
mov eax, dword [esi]
test ebp, ebp
je 0x471790
cmp ebp, eax
je 0x471795
call fcn.0055d9b4
cmp dword [esp + 0x28], edi
je 0x471813
test ebp, ebp
jne 0x471804
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4717b4
call fcn.0055d9b4
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
je 0x4717e1
test ebp, ebp
jne 0x471809
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4717d6
call fcn.0055d9b4
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
call fcn.005311b0
test ebp, ebp
jne 0x47180e
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4717fa
call fcn.0055d9b4
add dword [esp + 0x28], 0x18
jmp 0x471772
mov eax, dword [ebp]
jmp 0x4717a6
mov eax, dword [ebp]
jmp 0x4717c8
mov eax, dword [ebp]
jmp 0x4717ec
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
cmp dword [ecx], eax
jbe 0x471827
call fcn.0055d9b4
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
mov edi, dword [esi]
cmp ebp, dword [eax + 4]
jbe 0x471839
call fcn.0055d9b4
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.00470f10
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 [0x7d0648]
call fcn.00518ac0
mov eax, dword [esp + 0x5c]
cmp eax, 0x15
jb 0x471d38
cmp eax, 0x16
jbe 0x471893
cmp eax, 0x1a
jne 0x471d38
lea ebp, [eax - 0xa]
jmp 0x471898
mov ebp, 0x20
mov eax, dword [edi]
mov ecx, dword [0x7d0648]
lea edx, [esp + 0x64]
push edx
push 0
push eax
call fcn.00518c00
lea ecx, [esp + 0x6c]
push 0x80
push ecx
mov dword [esp + 0x18], eax
call fcn.00500830
push 0x27
push str.e:prg_vs2008kclib_dx9include..kcClassBasekcClassBase.h
push 0x58
call fcn.005112c0
add esp, 0x14
test eax, eax
je 0x4718e0
mov ecx, eax
call fcn.00531140
mov edi, eax
jmp 0x4718e2
xor edi, edi
mov edx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x124]
push 4
push edx
push eax
mov ecx, edi
call fcn.005336f0
mov ecx, edi
call fcn.004b45f0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, edi
mov dword [esp + 0x78], eax
call fcn.005311d0
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.0051a980
mov ecx, edi
mov dword [esp + 0x8c], eax
call fcn.005311f0
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.00547ce0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
add esp, 4
push ecx
mov ecx, dword [0x7d0648]
call fcn.00518ca0
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.00471650
fild dword [ebx + 0x8c]
mov eax, dword [esp + 0x34]
mov ecx, eax
fsub qword [0x60f1b8]
xor edi, edi
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x68]
fild dword [esp + 0x38]
test ecx, ecx
jge 0x471a3a
fadd dword [0x6087e8]
fstp dword [esp + 0x38]
mov dword [esp + 0x1c], 1
cmp eax, 1
jbe 0x471d1c
nop
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x471a62
fadd dword [0x6087e8]
fdiv dword [esp + 0x38]
fmul dword [esp + 0x68]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd qword [0x60f1b8]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.0055ddc0
cmp eax, dword [esp + 0x30]
je 0x471d09
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.005112c0
add esp, 0xc
test eax, eax
je 0x471ad9
mov ecx, eax
call fcn.00531140
mov ebx, eax
jmp 0x471adb
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push 4
push eax
push ecx
mov ecx, ebx
call fcn.005336f0
lea edx, [esp + 0x6c]
push 0x80
push edx
call fcn.00500830
add esp, 8
mov ecx, ebx
call fcn.004b45f0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.005311d0
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.0051a980
mov ecx, ebx
mov dword [esp + 0x8c], eax
call fcn.005311f0
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 0x471b78
call fcn.0055d9b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.004b45f0
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 0x471bac
call fcn.0055d9b4
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 0x471bda
call fcn.0055d9b4
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 0x471c18
call fcn.0055d9b4
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 0x471c46
call fcn.0055d9b4
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 0x471c74
call fcn.0055d9b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.0051a980
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 0x471ca8
call fcn.0055d9b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.005311f0
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x98], eax
call fcn.00547ce0
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.00471650
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 0x471a50
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 0x471750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret