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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x210
call 0x46b53f
pop eax
mov esi, dword [edx]
mov edi, dword [edx + 4]
movzx ebx, byte [edx + 0xc]
mov ebp, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x230]
push dword [esp + 0x22c]
call dword [eax + 0xc]
add esp, 4
mov dword [esp + 0x18], ebp
push ebp
mov dword [esp + 0x28], edi
push edi
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x2c], edx
call dword [edx + 0x18]
add esp, 0xc
test bl, 1
je 0x46b58e
mov edi, esi
jmp 0x46b5a9
mov edi, 0x80000000
test esi, esi
je 0x46b5a9
push dword [esp + 0x24]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebp, dword [esp + 0x18]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
call dword [eax + 0x10]
add esp, 4
mov ecx, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], edi
neg ecx
jno 0x46b5d4
mov esi, 0x80000000
jmp 0x46b60e
test ebp, ebp
js 0x46c369
je 0x46b5f7
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, ebp
call fcn.00499510
test eax, eax
jne 0x46b5fc
jmp 0x46c369
mov eax, 1
push ebp
push dword [esp + 0x28]
push eax
mov edi, eax
call fcn.004ef180
add esp, 0xc
mov esi, ebp
mov ebx, dword [esp + 0x228]
mov ecx, 0x14
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], eax
mul ecx
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x230]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
jo 0x46c369
cmp eax, 0x7ffffffd
jae 0x46c369
movsd xmm0, qword [ebx + 0xc]
movzx ecx, byte [ebx + 0x58]
movzx edx, byte [ebx + 0x59]
test eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], esi
movups xmmword [esp + 0x180], xmm0
mov byte [esp + 0x15], cl
mov byte [esp + 0x14], dl
je 0x46b6d1
mov esi, dword [ebx + 4]
movzx ecx, byte [0x6019e5]
mov edx, eax
xor ecx, ecx
call fcn.00499510
test eax, eax
je 0x46c369
mov edi, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46bc67
mov ecx, eax
lea eax, [eax + eax*4]
xor ebx, ebx
mov dword [esp + 0xc], edi
lea ebp, [esi + eax*4]
mov edx, ecx
mov dword [esp + 0x10], ebp
jmp 0x46b757
mov edi, 4
jmp 0x46bc67
cmp esi, ebp
mov dword [esp], ebx
je 0x46bc60
movzx eax, word [esi]
mov eax, dword [eax*4 + 0x46c36c]
add eax, dword [esp + 0x28]
jmp eax
mov ebx, dword [esp + 0x228]
movsd xmm0, qword [ebx + 0x14]
movsd xmm1, qword [ebx + 0x1c]
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], 0
movsd qword [esp + 0x128], xmm0
movsd xmm0, qword [ebx + 0x24]
movsd qword [esp + 0x130], xmm1
movsd xmm1, qword [ebx + 0x3c]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [ebx + 0x2c]
movsd qword [esp + 0x140], xmm0
movsd xmm0, qword [ebx + 0x34]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x48]
movsd qword [esp + 0x150], xmm1
movsd qword [esp + 0x148], xmm0
movsd xmm0, qword [ebx + 0x44]
movsd qword [esp + 0x158], xmm0
movsd xmm0, qword [ebx + 0x4c]
movsd qword [esp + 0x160], xmm0
mov byte [esp + 0x17c], 2
mov dword [esp + 0x110], 0x80000002
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], eax
movups xmm0, xmmword [esp + 0x180]
movzx eax, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
movlps qword [esp + 0x120], xmm0
mov byte [esp + 0x16c], al
mov byte [esp + 0x16d], ah
sub esp, 4
lea esi, [esp + 0x114]
lea edx, [esp + 0x6c]
mov ecx, esi
push 0x80000001
call fcn.0044c4e0
add esp, 8
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x68]
lea edi, [esp + 0xa0]
mov ecx, 0x1c
lea ebx, [esp + 0x190]
mov dword [esp + 0x9c], eax
movsd qword [esp + 0x94], xmm0
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x20c], 5
lea esi, [esp + 0x94]
mov ecx, 0x1f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x190]
lea eax, [edi + 0x7fffffff]
cmp eax, 4
setb cl
cmp eax, 1
setne dl
test cl, dl
jne 0x46be29
mov edi, dword [esp + 0x194]
mov esi, dword [esp + 0x198]
push esi
push edi
push dword [esp + 0x48]
mov eax, dword [esp + 0x50]
call dword [eax + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov eax, ecx
neg eax
jo 0x46be1c
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
sub ecx, ebp
cmp ecx, esi
jb 0x46c347
add eax, ebp
push esi
push edi
push eax
call fcn.004ef180
add esp, 0xc
add ebp, esi
mov dword [esp + 0x54], ebp
mov edi, dword [esp + 0x190]
lea eax, [edi + 0x7fffffff]
mov edx, dword [esp + 0x28]
cmp eax, 4
mov ecx, 1
mov esi, dword [esp + 0x224]
cmovb ecx, eax
add edx, dword [ecx*4 + 0x46c3a8]
jmp edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push 1
push 1
push esi
call fcn.004fe890
add esp, 0xc
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
jmp 0x46be09
ud2