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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [0x608334]
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 0x46eec2
call fcn.0055d9b4
mov edi, dword [esi]
mov dword [esp + 0x20], ebp
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x46eed5
call fcn.0055d9b4
mov eax, dword [esi]
test edi, edi
je 0x46eedf
cmp edi, eax
je 0x46eee4
call fcn.0055d9b4
cmp dword [esp + 0x20], ebp
je 0x46ef5f
test edi, edi
jne 0x46ef53
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ef03
call fcn.0055d9b4
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
je 0x46ef30
test edi, edi
jne 0x46ef57
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ef25
call fcn.0055d9b4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
call fcn.005311b0
test edi, edi
jne 0x46ef5b
call fcn.0055d9b4
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x46ef49
call fcn.0055d9b4
add dword [esp + 0x20], 0x18
jmp 0x46eec8
mov eax, dword [edi]
jmp 0x46eef5
mov eax, dword [edi]
jmp 0x46ef17
mov eax, dword [edi]
jmp 0x46ef3b
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esi + 0xc], eax
jbe 0x46ef70
call fcn.0055d9b4
mov edi, dword [esi + 0xc]
mov ebp, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x46ef7f
call fcn.0055d9b4
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.00470f10
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 [0x7d0648]
call fcn.00518ac0
mov eax, dword [esp + 0x60]
cmp eax, 0x15
jb 0x46f53e
cmp eax, 0x16
jbe 0x46efdb
cmp eax, 0x1a
jne 0x46f53e
mov dword [esp + 0x2c], 0x10
jmp 0x46efe3
mov dword [esp + 0x2c], 0x20
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x7d0648]
lea edx, [esp + 0x58]
push edx
push 0
push eax
call fcn.00518c00
lea ecx, [esp + 0x64]
push 0x80
push ecx
mov ebp, 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 0x46f02d
mov ecx, eax
call fcn.00531140
mov edi, eax
jmp 0x46f02f
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 + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.005311d0
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.0051a980
mov ecx, edi
mov dword [esp + 0x84], eax
call fcn.005311f0
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.00547ce0
mov eax, dword [ebx + 0x118]
mov ecx, dword [0x7d0648]
add esp, 4
push eax
call fcn.00518ca0
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.00471650
fild dword [ebx + 0x8c]
mov eax, dword [esp + 0x38]
mov ecx, eax
fsub qword [0x60f1b8]
xor edi, edi
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x34]
test ecx, ecx
jge 0x46f179
fadd dword [0x6087e8]
fstp dword [esp + 0x34]
mov dword [esp + 0x14], 1
cmp eax, 1
jbe 0x46f48d
mov edi, edi
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x46f1a2
fadd dword [0x6087e8]
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 [0x60f1b8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.0055ddc0
cmp eax, dword [esp + 0x30]
je 0x46f478
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.005112c0
add esp, 0xc
test eax, eax
je 0x46f221
mov ecx, eax
call fcn.00531140
mov ebx, eax
jmp 0x46f223
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 4
push eax
push ecx
mov ecx, ebx
call fcn.005336f0
lea edx, [esp + 0x64]
push 0x80
push edx
call fcn.00500830
add esp, 8
mov ecx, ebx
call fcn.004b45f0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call fcn.005311d0
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.0051a980
mov ecx, ebx
mov dword [esp + 0x84], eax
call fcn.005311f0
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 0x46f2ba
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 + 0x90], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x46f2ee
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 + 0x94], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x46f31c
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 + 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 0x46f35a
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 + 0xa4], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x46f388
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 + 0xa8], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x46f3b6
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 + 0xac], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x46f3ea
call fcn.0055d9b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.005311f0
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x90], eax
call fcn.00547ce0
fld dword [esp + 0x14]
mov eax, dword [esp + 0x34]
fmul qword [0x60f1b0]
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.00471650
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 0x46f190
xor ebp, ebp
cmp dword [esp + 0x2c], 0x10
jne 0x46f53e
cmp dword [ebx + 0x90], ebp
jne 0x46f53e
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 0x46f53e
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 0x46f4f0
call fcn.0055d9b4
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 0x46f51b
call fcn.0055d9b4
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.0046f860
add dword [esp + 0x14], 0x18
inc ebp
mov dword [edi], eax
cmp ebp, dword [esp + 0x1c]
jb 0x46f4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret