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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [0x65b33c]
push edi
lea eax, [esp + 0xc4]
mov ebx, ecx
push eax
mov dword [esp + 0x2c], ebx
call esi
lea ecx, [esp + 0xe4]
push ecx
call esi
mov ebp, dword [ebx + 0x138]
mov edx, dword [ebx + 0x88]
lea esi, [ebx + 0x12c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], edx
cmp ebp, dword [esi + 0x10]
jbe 0x479042
call fcn.005aec38
mov edi, dword [esi]
mov dword [esp + 0x20], ebp
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x479055
call fcn.005aec38
mov eax, dword [esi]
test edi, edi
je 0x47905f
cmp edi, eax
je 0x479064
call fcn.005aec38
cmp dword [esp + 0x20], ebp
je 0x4790df
test edi, edi
jne 0x4790d3
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x479083
call fcn.005aec38
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
je 0x4790b0
test edi, edi
jne 0x4790d7
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x4790a5
call fcn.005aec38
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
call fcn.00541110
test edi, edi
jne 0x4790db
call fcn.005aec38
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x4790c9
call fcn.005aec38
add dword [esp + 0x20], 0x18
jmp 0x479048
mov eax, dword [edi]
jmp 0x479075
mov eax, dword [edi]
jmp 0x479097
mov eax, dword [edi]
jmp 0x4790bb
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esi + 0xc], eax
jbe 0x4790f0
call fcn.005aec38
mov edi, dword [esi + 0xc]
mov ebp, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x4790ff
call fcn.005aec38
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push ebp
push edi
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0047af80
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [ebx + 0x118]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [0x842680]
call fcn.00527020
mov eax, dword [esp + 0x60]
cmp eax, 0x15
jb 0x4796be
cmp eax, 0x16
jbe 0x47915b
cmp eax, 0x1a
jne 0x4796be
mov dword [esp + 0x2c], 0x10
jmp 0x479163
mov dword [esp + 0x2c], 0x20
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x842680]
lea edx, [esp + 0x58]
push edx
push 0
push eax
call fcn.00527160
lea ecx, [esp + 0x64]
push 0x80
push ecx
mov ebp, 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 0x4791ad
mov ecx, eax
call fcn.005410a0
mov edi, eax
jmp 0x4791af
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 + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.00541130
mov ecx, dword [ebx + 0x128]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x124]
mov dword [esp + 0x80], ecx
mov ecx, edi
mov dword [esp + 0x7c], eax
call fcn.0052a210
mov ecx, edi
mov dword [esp + 0x84], eax
call fcn.00541150
mov edx, dword [esp + 0x54]
mov ecx, dword [ebx + 0x124]
mov dword [esp + 0x94], edx
mov edx, dword [ebx + 0x128]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x64]
xor ebp, ebp
shr ecx, 3
push edx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xb0], eax
mov dword [esp + 0x90], ecx
call fcn.00558940
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x842680]
add esp, 4
push eax
call fcn.00527210
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], ecx
push eax
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], edx
mov byte [esp + 0x54], 0xff
call fcn.00478f50
fild dword [ebx + 0x8c]
mov eax, dword [esp + 0x38]
mov ecx, eax
fsub qword [0x662638]
xor edi, edi
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
test ecx, ecx
jge 0x4792f9
fadd dword [0x65b838]
fstp dword [esp + 0x34]
mov dword [esp + 0x14], 1
cmp eax, 1
jbe 0x47960d
mov edi, edi
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x479322
fadd dword [0x65b838]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fadd qword [0x662638]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.005af050
cmp eax, dword [esp + 0x30]
je 0x4795f8
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 + 0x30], eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
inc eax
mov dword [esp + 0x24], eax
call fcn.0051ee10
add esp, 0xc
test eax, eax
je 0x4793a1
mov ecx, eax
call fcn.005410a0
mov ebx, eax
jmp 0x4793a3
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 4
push eax
push ecx
mov ecx, ebx
call fcn.00543660
lea edx, [esp + 0x64]
push 0x80
push edx
call fcn.0050cd20
add esp, 8
mov ecx, ebx
call fcn.005673b0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call fcn.00541130
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
call fcn.0052a210
mov ecx, ebx
mov dword [esp + 0x84], eax
call fcn.00541150
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x64], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47943a
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 + 0x90], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47946e
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 + 0x94], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47949c
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 + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4794da
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 + 0xa4], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479508
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 + 0xa8], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479536
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 + 0xac], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47956a
call fcn.005aec38
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.00541150
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x90], eax
call fcn.00558940
fld dword [esp + 0x14]
mov eax, dword [esp + 0x34]
fmul qword [0x662630]
mov edx, dword [esp + 0x28]
fnstcw word [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
movzx eax, word [esp + 0x28]
or eax, 0xc00
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fldcw word [esp + 0x14]
or dl, 0xff
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], ebx
fistp dword [esp + 0x14]
mov cl, byte [esp + 0x14]
sub dl, cl
mov ecx, esi
fldcw word [esp + 0x28]
mov byte [esp + 0x54], dl
call fcn.00478f50
mov ebx, dword [esp + 0x28]
inc edi
add ebp, 0x18
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x38]
jb 0x479310
xor ebp, ebp
cmp dword [esp + 0x2c], 0x10
jne 0x4796be
cmp dword [ebx + 0x90], ebp
jne 0x4796be
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
je 0x4796be
mov dword [esp + 0x14], 0
lea esp, [esp]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x479670
call fcn.005aec38
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x47969b
call fcn.005aec38
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.004799d0
add dword [esp + 0x14], 0x18
inc ebp
mov dword [edi], eax
cmp ebp, dword [esp + 0x1c]
jb 0x479650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret