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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
mov ebp, dword [esp + 0x22c]
mov edi, ecx
call 0x46d7a8
pop eax
mov esi, edx
mov ecx, edx
mov dword [esp + 0x68], eax
mov edx, ebp
call fcn.00466480
mov eax, dword [ebp]
mov dword [esp + 0x14], esi
lea ecx, [eax + 0x7fffffff]
cmp ecx, 5
setb dl
cmp ecx, 1
setne dh
test dl, dh
jne 0x46d81b
cmp dword [ebp + 0xc], 0x80000006
jne 0x46d81b
lea edx, [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0x10]
mov ebp, dword [ebp + 0x20]
cmp edx, 0x80000001
jne 0x46d908
mov edx, dword [esp + 0x22c]
mov edx, dword [edx + 0x14]
mov dword [edi], edx
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebp
jmp 0x46dadb
mov dword [esp], edi
lea edi, [esp + 0xe8]
mov ecx, 0x1f
mov esi, ebp
mov edx, 2
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xe8]
movzx eax, byte [0xfd520d]
lea ebp, [edi + 0x7fffffff]
cmp ebp, 5
setb bl
cmp ebp, 1
setne bh
xor ecx, ecx
call fcn.00494530
mov esi, eax
test bl, bh
jne 0x46d88d
test esi, esi
je 0x46e149
mov word [esi], 0x12
movzx eax, byte [esp + 0x160]
mov byte [esp + 4], al
movzx eax, byte [esp + 0x161]
mov byte [esp + 0xc], al
mov al, 1
mov dword [esp + 0x10], eax
jmp 0x46d8b8
test esi, esi
je 0x46e149
cmp ebp, 5
mov eax, 1
mov word [esi], 2
mov dword [esp + 0x10], 0
cmovb eax, ebp
movzx eax, byte [eax + 0xfd0eea]
mov byte [esp + 4], al
mov ebx, dword [esp + 0x14]
cmp ebp, 5
mov ecx, 1
lea eax, [esp + 0xf0]
cmovb ecx, ebp
cmp ecx, 3
ja 0x46d9e7
mov edx, dword [esp + 0x68]
add edx, dword [ecx*4 + 0x46e14c]
jmp edx
mov eax, dword [esp + 0x22c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
mov dword [esp], edi
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x5c]
mov ebp, dword [eax + 0x24]
test ebp, ebp
je 0x46da5c
mov edi, dword [eax + 0x20]
cmp si, 3
jne 0x46da32
shr esi, 0x10
shl ebp, 3
jmp 0x46d95c
add edi, 8
add ebp, 0xfffffff8
je 0x46da5c
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
cmp ax, 3
jne 0x46d950
cmp dx, si
jne 0x46d950
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x22c]
mov edx, dword [esp + 8]
cmp esi, 0x10000
jbe 0x46dc7e
mov eax, dword [esp + 0x228]
mov word [esp + 0x164], 4
mov dword [esp + 0xe8], 0x80000001
mov dword [esp + 0xec], 0x80001
lea edx, [esp + 0xe8]
mov esi, dword [eax]
xor eax, eax
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00452600
add esp, 4
mov eax, dword [esp]
mov byte [esi + 0x249], 1
mov byte [eax], 3
mov byte [eax + 4], 0xa
jmp 0x46dab6
test dword [esp + 0xec], 0x7fffffff
je 0x46da04
push dword [eax]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
movzx edx, byte [esp + 0xc]
mov byte [eax], cl
mov ch, byte [esp + 4]
mov byte [eax + 1], ch
mov byte [eax + 2], dl
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], 1
jmp 0x46db5a
shl ebp, 3
nop word cs:[eax + eax]
nop
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
cmp ax, si
je 0x46d972
add edi, 8
add ebp, 0xfffffff8
jne 0x46da40
mov eax, dword [esp + 0x228]
mov word [esp + 0x164], 4
mov dword [esp + 0xe8], 0x80000001
mov dword [esp + 0xec], 0x80001
lea edx, [esp + 0xe8]
mov esi, dword [eax]
xor eax, eax
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00452600
add esp, 4
mov ebp, dword [esp + 0x22c]
mov eax, dword [esp]
mov byte [esi + 0x249], 1
mov word [eax], 0x3309
test dword [esp + 0x10], 0x7fffffff
je 0x46dad2
push dword [esp + 0xc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp]
lea ecx, [eax + 0x7fffffff]
cmp ecx, 5
setae dl
cmp ecx, 1
sete cl
or cl, dl
je 0x46db0e
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x22c]
cmp dword [ecx], 0x80000006
je 0x46db05
call fcn.00451a10
mov eax, dword [esi]
test eax, 0x7fffffff
je 0x46db5a
jmp 0x46db35
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x22c]
add eax, 0x7fffffff
cmp eax, 3
ja 0x46db4d
mov edx, dword [esp + 0x68]
add edx, dword [eax*4 + 0x46e15c]
jmp edx
mov eax, 4
push dword [esi + eax]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46db5a
test dword [esi + 4], 0x7fffffff
jne 0x46dc9c
mov eax, dword [ebx + 0x5c]
lock dec dword [eax]
jne 0x46db6a
lea ecx, [ebx + 0x5c]
call fcn.004a48f0
cmp byte [ebx + 0x48], 0
jne 0x46db8a
test dword [ebx + 0x4c], 0x7fffffff
je 0x46db8a
push dword [ebx + 0x50]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x46db9c
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46dbba
cmp dword [edi + 8], 9
jb 0x46dbab
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [ebx], 0x7fffffff
je 0x46dbd3
push dword [ebx + 4]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebx + 0x68]
mov esi, dword [ebx + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x46dbe5
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46dc03
cmp dword [edi + 8], 9
jb 0x46dbf4
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebx + 0x70]
call fcn.0043e250
lea ecx, [ebx + 0xb4]
call fcn.0043e250
lea ecx, [ebx + 0x28]
call fcn.0046d000
mov edi, dword [ebx + 0x1c]
mov eax, edi
neg eax
jo 0x46dc64
mov ebp, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x46dc4d
mov esi, ebp
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, esi
call fcn.004a1840
add esi, 0x3c
dec ebx
jne 0x46dc40
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x46dc64
push ebp
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x46dca6
mov ecx, 8
mov edx, esi
call fcn.00494530
test eax, eax
je 0x46e149
mov edx, dword [esp + 8]
jmp 0x46dcab
mov eax, 8
jmp 0x46db3a
mov eax, 1
mov ecx, dword [edi + 4]
push esi
push eax
push edx
push dword [esp + 0x18]
push dword [edi]
mov edi, eax
call dword [ecx + 0x18]
add esp, 0x14
test al, al
mov dword [esp + 8], edi
je 0x46dd1f
mov eax, dword [esp + 0x228]
mov word [esp + 0x164], 4
mov dword [esp + 0xe8], 0x80000001
mov dword [esp + 0xec], 0x80001
lea edx, [esp + 0xe8]
mov esi, dword [eax]
xor eax, eax
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00452600
add esp, 4
mov eax, dword [esp]
mov byte [esi + 0x249], 1
mov word [eax], 0x1809
jmp 0x46ddc6
lea ecx, [esp + 0x78]
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
call fcn.0044dac0
xor eax, eax
cmp eax, dword [esp + 0x78]
jno 0x46dde9
mov eax, dword [esp + 0x228]
mov word [esp + 0x164], 4
mov dword [esp + 0xe8], 0x80000001
mov dword [esp + 0xec], 0x80001
lea edx, [esp + 0xe8]
mov esi, dword [eax]
xor eax, eax
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00452600
add esp, 4
mov byte [esi + 0x249], 1
mov eax, dword [esp + 0x84]
movsd xmm0, qword [esp + 0x7c]
mov dword [esp + 0x27], eax
movsd qword [esp + 0x1f], xmm0
mov eax, dword [esp]
movsd xmm0, qword [esp + 0x1c]
movsd xmm1, qword [esp + 0x23]
mov byte [eax], 3
movsd qword [eax + 1], xmm0
movsd qword [eax + 8], xmm1
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 8]
je 0x46dab6
push eax
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46dab6
movsd xmm0, qword [esp + 0x88]
movsd xmm2, qword [esp + 0x78]
movsd xmm1, qword [esp + 0x80]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x17c]
movsd qword [esp + 0x18c], xmm0
movsd qword [esp + 0x184], xmm1
movsd qword [esp + 0x17c], xmm2
call fcn.00452270
mov byte [esp + 0xe4], 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x78], 0x80000005
mov dword [esp + 0x24], 0
sub esp, 4
lea esi, [esp + 0x7c]
lea edx, [esp + 0x20]
mov ecx, esi
push 0x80000000
call fcn.004512d0
add esp, 8
mov eax, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x1c]
lea edi, [esp + 0xf4]
mov ecx, 0x1c
lea edx, [esp + 0xe8]
mov dword [esp + 0xf0], eax
movsd qword [esp + 0xe8], xmm0
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x210], 5
lea edi, [esp + 0x194]
mov ecx, 0x1f
mov esi, edx
rep movsd dword es:[edi], dword [esi]
movsd xmm1, qword [ebx + 0x50]
movsd xmm2, qword [ebx + 0xf8]
mov eax, dword [ebx + 0x58]
movsd xmm0, qword [ebx + 0x48]
movsd qword [esp + 0xc8], xmm1
movsd xmm1, qword [ebx + 0x100]
movsd qword [esp + 0x1c], xmm2
movsd xmm2, qword [ebx + 0x110]
mov dword [esp + 0xd0], eax
mov eax, dword [ebx + 0x18]
movsd qword [esp + 0xc0], xmm0
movsd qword [esp + 0x24], xmm1
movsd xmm1, qword [ebx + 0x108]
movsd qword [esp + 0x34], xmm2
movsd xmm2, qword [ebx + 0x120]
mov dword [esp + 0x90], eax
lea eax, [ebx + 0x64]
movsd qword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 0x118]
movsd qword [esp + 0x44], xmm2
movsd xmm2, qword [ebx + 0x130]
movsd qword [esp + 0x3c], xmm1
movsd xmm1, qword [ebx + 0x128]
movsd qword [esp + 0x54], xmm2
movsd xmm2, qword [ebx]
movsd qword [esp + 0x4c], xmm1
movsd xmm1, qword [ebx + 0x5c]
movsd qword [esp + 0x78], xmm2
movups xmmword [esp + 0x68], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x80], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x88], xmm1
push 0x94
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [ebx + 0x30]
movsd xmm0, qword [ebx + 0x28]
movsd xmm2, qword [ebx + 0x40]
mov eax, dword [ebx + 0x24]
xor ecx, ecx
mov edx, 0x13c
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [ebx + 0x38]
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [ebx + 0x1c]
mov dword [esp + 0x9c], eax
movsd qword [esp + 0x94], xmm1
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x46e149
lea esi, [esp + 0x78]
mov ecx, 0x17
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, eax
movups xmm0, xmmword [esp + 0x68]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
lea ecx, [esp + 0xec]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x1c]
movsd xmm1, qword [esp + 0x24]
lea eax, [esp + 0x194]
movsd qword [esi + 0xf8], xmm0
movsd qword [esi + 0x100], xmm1
movsd xmm0, qword [esp + 0x2c]
movsd qword [esi + 0x108], xmm0
movsd xmm0, qword [esp + 0x34]
movsd qword [esi + 0x110], xmm0
movsd xmm0, qword [esp + 0x3c]
movsd qword [esi + 0x118], xmm0
movsd xmm0, qword [esp + 0x44]
movsd qword [esi + 0x120], xmm0
movsd xmm0, qword [esp + 0x4c]
movsd qword [esi + 0x128], xmm0
movsd xmm0, qword [esp + 0x54]
movsd qword [esi + 0x130], xmm0
mov byte [esi + 0x138], 1
push eax
push dword [esp + 0x22c]
push esi
push dword [esp + 0xc]
call fcn.0046b560
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x46e0e1
push dword [esp + 8]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esp + 0x10], 0x7fffffff
je 0x46e0fd
push dword [esp + 0xc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp]
lea ecx, [eax + 0x7fffffff]
cmp ecx, 5
setae dl
cmp ecx, 1
sete cl
or cl, dl
je 0x46e13d
mov ecx, dword [esp + 4]
cmp dword [ecx], 0x80000006
je 0x46e12a
call fcn.00451a10
mov eax, dword [ebp]
test eax, 0x7fffffff
je 0x46dc64
push dword [ebp + 4]
jmp 0x46dc56
mov ecx, ebp
call fcn.00466f20
jmp 0x46dc64
ud2