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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.0064dc20
lea ecx, [esp + 0x70]
call fcn.0064dc20
lea ecx, [esp + 0x28]
call fcn.0064dc20
lea ecx, [esp + 0x40]
call fcn.0064dc20
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 1
mov dword [esp + 0x24], eax
jne 0x46aaa9
mov eax, dword [edi + 4]
mov ecx, dword [eax]
call fcn.004da3a0
mov esi, eax
mov eax, dword [esi + 0x10]
cmp eax, 2
jne 0x46aa60
mov edx, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [edx + 0x7c]
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00472bf0
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [eax + 0x84]
mov ecx, edi
call fcn.00472bf0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x46ad6d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x46ad6d
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0xc]
call fcn.00472bf0
inc edi
cmp edi, ebx
jl 0x46aa7f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x46ad6d
jmp 0x46aabc
mov edi, dword [ebp + 8]
mov edx, dword [edi + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x4197d784
mov ecx, dword [edx + ebx*4]
call fcn.004da3a0
mov esi, eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x7c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov edx, dword [esi]
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
lea eax, [ebx - 1]
mov dword [esp + 0x80], ecx
test eax, eax
mov dword [esp + 0x84], edx
jl 0x46ab62
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + ebx*4 - 4]
jmp 0x46ab69
mov edx, dword [edi + 4]
mov ecx, dword [edx + ebx*4 + 4]
call fcn.004da3a0
mov edi, eax
lea ecx, [esp + 0xa0]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x7c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [edi]
lea eax, [esp + 0xd0]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
push eax
push ecx
mov dword [esp + 0x5c], edx
call fcn.0064def0
fcom qword [0x69dc10]
add esp, 8
fnstsw ax
test ah, 1
je 0x46ac10
fstp qword [esp + 0x18]
mov dword [esp + 0x14], 0
jmp 0x46ac12
fstp st(0)
lea edx, [esp + 0x40]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0064def0
fcom qword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 1
je 0x46ac3d
fstp qword [esp + 0x18]
mov dword [esp + 0x14], 0
jmp 0x46ac3f
fstp st(0)
lea ecx, [esp + 0x28]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.0064def0
fcom qword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 1
je 0x46ac6a
fstp qword [esp + 0x18]
mov dword [esp + 0x14], 1
jmp 0x46ac6c
fstp st(0)
lea eax, [esp + 0x40]
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.0064def0
fcomp qword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 1
je 0x46acd4
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0x10]
test ebx, ebx
jne 0x46adb0
cmp eax, 2
jne 0x46ad79
mov edx, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [edx + 0x7c]
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00472bf0
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [eax + 0x84]
mov ecx, edi
call fcn.00472bf0
jmp 0x46ad5c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46ac91
mov eax, dword [esi + 0x10]
test ebx, ebx
jne 0x46ad1e
cmp eax, 2
je 0x46adb5
cmp eax, 4
jne 0x46ad5c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov edi, eax
dec edi
js 0x46ad5c
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0xc]
call fcn.00472bf0
dec edi
jns 0x46ad00
jmp 0x46ad5c
cmp eax, 2
je 0x46aca5
cmp eax, 4
jne 0x46ad5c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x46ad58
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0xc]
call fcn.00472bf0
inc edi
cmp edi, ebx
jl 0x46ad3a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x46aab9
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x46ad5c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x46ad58
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0xc]
call fcn.00472bf0
inc edi
cmp edi, ebx
jl 0x46ad90
jmp 0x46ad58
cmp eax, 2
jne 0x46ade4
mov edx, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [edx + 0x84]
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00472bf0
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esi
push esp
call dword [eax + 0x7c]
mov ecx, edi
call fcn.00472bf0
jmp 0x46ad5c
cmp eax, 4
jne 0x46ad5c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov edi, eax
dec edi
js 0x46ad5c
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0xc]
call fcn.00472bf0
dec edi
jns 0x46ae00
jmp 0x46ad5c