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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x190
mov edi, dword [esp + 0x1a8]
call 0x46c126
pop eax
mov ebp, edx
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, 0x7fffffff
add eax, dword [edi]
lea esi, [edi + 0xc]
mov dword [esp + 0x28], esi
cmp eax, 5
setae dl
cmp eax, 1
sete al
or al, dl
cmp al, 1
jne 0x46c1c4
cmp dword [edi + 0xc], 0x80000009
jne 0x46c1c4
mov ebx, dword [esp + 0x1a4]
mov ecx, ebp
mov edx, edi
call fcn.00466480
cmp dword [edi + 0x18], 0
je 0x46c3be
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], 0x80000001
mov dword [esp + 0x100], 0x100001
xor eax, eax
lea edx, [esp + 0xfc]
mov ecx, ebx
cmp byte [ebx + 0x31], 2
sete al
push eax
call fcn.00452600
add esp, 4
mov eax, dword [esp]
mov byte [ebx + 0x249], 1
mov byte [eax], 3
mov byte [eax + 4], 5
jmp 0x46c24c
test al, al
je 0x46c1f3
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 2
call fcn.00494530
test eax, eax
je 0x46ccd0
mov word [eax], 0xa
lea edx, [edi + 0x78]
mov cl, 1
movzx ebx, byte [edi + 0x79]
jmp 0x46c22d
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 2
call fcn.00494530
test eax, eax
je 0x46ccd0
mov word [eax], 2
mov ecx, 0x7fffffff
mov edx, 1
add ecx, dword [edi]
cmp ecx, 5
cmovb edx, ecx
xor ecx, ecx
lea edx, [edx + 0xfd0ee0]
movzx edx, byte [edx]
mov esi, dword [esp]
mov byte [esi + 1], dl
mov byte [esi + 2], bl
mov byte [esi], cl
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov esi, dword [edi]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x46c28c
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x46ccf4]
jmp ecx
test dword [edi + 4], 0x7fffffff
jne 0x46c648
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
jne 0x46c2a9
lea ecx, [ebp + 0x3c]
call fcn.004a48f0
cmp byte [ebp + 0x28], 0
jne 0x46c2c9
test dword [ebp + 0x2c], 0x7fffffff
je 0x46c2c9
push dword [ebp + 0x30]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x46c2db
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46c2f9
cmp dword [edi + 8], 9
jb 0x46c2ea
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [ebp], 0x7fffffff
je 0x46c313
push dword [ebp + 4]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0x48]
mov esi, dword [ebp + 0x44]
mov eax, dword [edi]
test eax, eax
je 0x46c325
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x46c343
cmp dword [edi + 8], 9
jb 0x46c334
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp + 0x50]
call fcn.0043e250
lea ecx, [ebp + 0x94]
call fcn.0043e250
mov ebx, dword [ebp + 0x1c]
mov eax, ebx
neg eax
jo 0x46c3a4
mov eax, dword [ebp + 0x20]
mov edi, ebp
mov ebp, dword [ebp + 0x24]
test ebp, ebp
mov dword [esp], eax
je 0x46c38d
mov esi, dword [esp]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, esi
call fcn.004a1840
add esi, 0x3c
dec ebp
jne 0x46c380
test ebx, ebx
mov ebp, edi
je 0x46c3a4
push dword [esp]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x190
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x24]
xor eax, eax
mov dword [esp + 4], ebp
test ecx, ecx
je 0x46c41a
mov edx, dword [edi + 0x20]
shl ecx, 4
mov esi, 3
jmp 0x46c3e8
add edx, 0x10
add ecx, 0xfffffff0
je 0x46c41a
mov edi, dword [edx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
lea ebp, [ebx - 1]
cmp ebp, 2
jb 0x46c3e0
cmp ebx, 3
jne 0x46c40a
cmp word [edx + 0xc], 0xd
jne 0x46c3e0
cmp edi, 0x80000001
jne 0x46c41a
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
jmp 0x46c41a
test eax, eax
mov ebp, 2
cmove ecx, eax
cmovne ebp, eax
mov eax, 0xfa8
lea edi, [ebp + ecx*4]
shl ecx, 2
test ecx, ecx
je 0x46cc38
movzx esi, word [ebp]
add ebp, 4
add ecx, 0xfffffffc
cmp esi, 0xb
ja 0x46c433
bt eax, esi
jae 0x46c433
movzx ebx, word [ebp - 2]
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 0x10
call fcn.00494530
test eax, eax
je 0x46ccd0
mov edx, 1
mov ecx, 0xfa8
mov word [eax], si
mov word [eax + 2], bx
mov dword [esp + 0xfc], 4
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 1
nop dword [eax]
cmp ebp, edi
je 0x46c504
movzx esi, word [ebp]
add ebp, 4
cmp esi, 0xb
ja 0x46c4a0
bt ecx, esi
jae 0x46c4a0
movzx ebx, word [ebp - 2]
cmp edx, dword [esp + 0xfc]
je 0x46c4d5
mov word [eax + edx*4], si
mov word [eax + edx*4 + 2], bx
inc edx
mov dword [esp + 0x104], edx
jmp 0x46c4a0
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xfc]
mov edx, dword [esp + 0x2c]
push 4
push 2
push 1
call fcn.004e8d40
mov edx, dword [esp + 0x38]
mov ecx, 0xfa8
add esp, 0xc
mov eax, dword [esp + 0x100]
jmp 0x46c4c2
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0xfc]
test edx, edx
mov dword [esp + 0x10], eax
je 0x46cc42
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x46c68c
mov eax, dword [esi + 0x20]
mov ebp, dword [esp + 0xc]
shl ecx, 4
mov edx, 3
jmp 0x46c56c
add eax, 0x10
add ecx, 0xfffffff0
je 0x46c681
mov esi, dword [eax]
lea edi, [esi + 0x7fffffff]
cmp edi, 3
cmovae edi, edx
cmp edi, 2
jb 0x46c560
cmp edi, 3
jne 0x46c58b
cmp word [eax + 0xc], 0x14
jne 0x46c560
cmp esi, 0x80000003
mov esi, dword [esp + 0x1a8]
mov ecx, 0
jne 0x46c692
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x46ccc2
mov esi, dword [eax + 0xc]
mov edi, dword [ecx + 0x2c]
mov ecx, esi
lea esi, [edi + edx*8]
test ecx, ecx
je 0x46c66f
mov ebp, dword [eax + 8]
shl ecx, 2
mov dword [esp + 0x1c], esi
mov ebx, ecx
mov dword [esp + 0x18], ecx
lea eax, [ebp + 2]
mov dword [esp + 0x14], ebp
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
mov esi, ebx
mov ecx, ebx
mov ebx, dword [esp + 8]
cmp ax, 3
je 0x46c626
cmp word [ebp], ax
je 0x46c632
add ebp, 4
add esi, 0xfffffffc
jne 0x46c5f8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add edi, 8
cmp edi, esi
jne 0x46c5df
jmp 0x46ccc9
add ebx, 4
add ecx, 0xfffffffc
je 0x46c606
cmp word [ebx - 2], 3
jne 0x46c61e
cmp word [ebx], dx
jne 0x46c61e
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x1a8]
jmp 0x46c68e
mov eax, 8
push dword [edi + eax]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
je 0x46c2a1
jmp 0x46c2a9
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
add edi, 8
cmp edi, esi
jne 0x46c66f
mov esi, dword [esp + 0x1a8]
xor ecx, ecx
jmp 0x46c692
xor ecx, ecx
mov ebp, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x24]
mov ecx, dword [eax + 0x88]
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], ecx
dec edi
test edx, edx
je 0x46c716
mov ecx, dword [esi + 0x20]
shl edx, 4
mov esi, 3
mov dword [esp + 8], edi
jmp 0x46c6c8
mov edi, dword [ecx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
mov ebx, dword [ebx*4 + 0x46ccd4]
add ebx, ebp
jmp ebx
and edi, 0xfffffff8
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
test edi, edi
js 0x46ccd0
mov ebx, dword [eax + 0x84]
mov esi, dword [esi + 0x14]
je 0x46c74e
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
mov ebp, eax
test eax, eax
jne 0x46c753
jmp 0x46ccd0
mov ebp, 1
mov eax, dword [esp + 8]
lea ebx, [ebx + eax + 8]
push edi
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0xdc]
mov edx, ebx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], edi
push dword [esp + 0x3c]
push dword [esp + 0x20]
lea ebp, [esp + 0x104]
push ebp
push dword [esp + 0x38]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x34]
call fcn.0046cd10
add esp, 0x20
mov ebx, dword [esp + 4]
cmp byte [ebx + 0x118], 0
lea edx, [ebx + 0x28]
lea ecx, [ebx + 0xd8]
lea eax, [ebx + 0x44]
lea esi, [ebx + 0x1c]
je 0x46c9bb
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x138
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x46ccd0
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0xf94228
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
jmp 0x46cba8
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x13c
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x46ccd0
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0xf9424c
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
mov byte [ebp + 0x138], 0
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1a8]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
test edx, edx
mov byte [ecx], 0x16
je 0x46cbd6
push eax
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [edi]
mov ebp, dword [esp + 4]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x46cc1b
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x46cce4]
jmp ecx
test dword [edi + 4], 0x7fffffff
je 0x46c3a4
mov eax, 8
mov eax, dword [edi + eax]
mov dword [esp], eax
jmp 0x46c393
xor ebx, ebx
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x1a4]
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], 0x80000001
mov dword [esp + 0x100], 0x60001
xor eax, eax
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x1a8]
lea edx, [esp + 0xfc]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00452600
add esp, 4
mov eax, dword [esp]
test ebx, ebx
mov byte [esi + 0x249], 1
mov byte [eax], 8
mov dword [eax + 4], 0x80000005
je 0x46c24c
push dword [esp + 0x10]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46c24c
xor ecx, ecx
jmp 0x46c692
xor ecx, ecx
jmp 0x46c63b
ud2