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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [0x607334]
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 0x46eda2
call fcn.0055cb74
mov edi, dword [esi]
mov dword [esp + 0x20], ebp
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x46edb5
call fcn.0055cb74
mov eax, dword [esi]
test edi, edi
je 0x46edbf
cmp edi, eax
je 0x46edc4
call fcn.0055cb74
cmp dword [esp + 0x20], ebp
je 0x46ee3f
test edi, edi
jne 0x46ee33
call fcn.0055cb74
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ede3
call fcn.0055cb74
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
je 0x46ee10
test edi, edi
jne 0x46ee37
call fcn.0055cb74
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ee05
call fcn.0055cb74
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
call fcn.00530740
test edi, edi
jne 0x46ee3b
call fcn.0055cb74
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ee29
call fcn.0055cb74
add dword [esp + 0x20], 0x18
jmp 0x46eda8
mov eax, dword [edi]
jmp 0x46edd5
mov eax, dword [edi]
jmp 0x46edf7
mov eax, dword [edi]
jmp 0x46ee1b
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esi + 0xc], eax
jbe 0x46ee50
call fcn.0055cb74
mov edi, dword [esi + 0xc]
mov ebp, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x46ee5f
call fcn.0055cb74
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.00470c20
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 [0x7cf648]
call fcn.00517e30
mov eax, dword [esp + 0x60]
cmp eax, 0x15
jb 0x46f41e
cmp eax, 0x16
jbe 0x46eebb
cmp eax, 0x1a
jne 0x46f41e
mov dword [esp + 0x2c], 0x10
jmp 0x46eec3
mov dword [esp + 0x2c], 0x20
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x7cf648]
lea edx, [esp + 0x58]
push edx
push 0
push eax
call fcn.00517f70
lea ecx, [esp + 0x64]
push 0x80
push ecx
mov ebp, eax
call fcn.004ffbf0
push 0x27
push str.e:prg_vs2008kclib_dx9include..kcClassBasekcClassBase.h
push 0x58
call fcn.00510640
add esp, 0x14
test eax, eax
je 0x46ef0d
mov ecx, eax
call fcn.005306d0
mov edi, eax
jmp 0x46ef0f
xor edi, edi
mov edx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x124]
push 4
push edx
push eax
mov ecx, edi
call fcn.00532c90
mov ecx, edi
call fcn.004b4470
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.00530760
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.005590d0
mov ecx, edi
mov dword [esp + 0x84], eax
call fcn.00530780
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.00547200
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x7cf648]
add esp, 4
push eax
call fcn.00518010
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.00471390
fild dword [ebx + 0x8c]
mov eax, dword [esp + 0x38]
mov ecx, eax
fsub qword [0x60e1b8]
xor edi, edi
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
test ecx, ecx
jge 0x46f059
fadd dword [0x6077e8]
fstp dword [esp + 0x34]
mov dword [esp + 0x14], 1
cmp eax, 1
jbe 0x46f36d
mov edi, edi
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x46f082
fadd dword [0x6077e8]
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 [0x60e1b8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.0055cf80
cmp eax, dword [esp + 0x30]
je 0x46f358
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.00510640
add esp, 0xc
test eax, eax
je 0x46f101
mov ecx, eax
call fcn.005306d0
mov ebx, eax
jmp 0x46f103
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 4
push eax
push ecx
mov ecx, ebx
call fcn.00532c90
lea edx, [esp + 0x64]
push 0x80
push edx
call fcn.004ffbf0
add esp, 8
mov ecx, ebx
call fcn.004b4470
mov dword [esp + 0x68], eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call fcn.00530760
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.005590d0
mov ecx, ebx
mov dword [esp + 0x84], eax
call fcn.00530780
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 0x46f19a
call fcn.0055cb74
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.004b4470
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 0x46f1ce
call fcn.0055cb74
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 0x46f1fc
call fcn.0055cb74
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 0x46f23a
call fcn.0055cb74
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 0x46f268
call fcn.0055cb74
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 0x46f296
call fcn.0055cb74
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.005590d0
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 0x46f2ca
call fcn.0055cb74
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.00530780
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x90], eax
call fcn.00547200
fld dword [esp + 0x14]
mov eax, dword [esp + 0x34]
fmul qword [0x60e1b0]
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.00471390
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 0x46f070
xor ebp, ebp
cmp dword [esp + 0x2c], 0x10
jne 0x46f41e
cmp dword [ebx + 0x90], ebp
jne 0x46f41e
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 0x46f41e
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 0x46f3d0
call fcn.0055cb74
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 0x46f3fb
call fcn.0055cb74
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.0046d460
add dword [esp + 0x14], 0x18
inc ebp
mov dword [edi], eax
cmp ebp, dword [esp + 0x1c]
jb 0x46f3b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret