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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x164
mov ebp, dword [esp + 0x17c]
mov edi, dword [esp + 0x178]
mov esi, dword [esp + 0x184]
call 0x46b584
pop eax
mov dword [esp + 0x14], eax
cmp byte [ebp + 0x138], 0
jne 0x46b59b
mov ecx, ebp
mov edx, esi
call fcn.00466480
mov eax, 0x7fffffff
add eax, dword [esi]
cmp eax, 5
setb cl
cmp eax, 1
setne al
test cl, al
jne 0x46b6e5
cmp dword [esi + 0xc], 0x80000005
jne 0x46b6e5
lea eax, [esi + 0xc]
mov ebx, dword [esi + 0x20]
mov edx, dword [esp + 0x180]
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x18], 0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp], ebx
mov ebx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
je 0x46b861
mov esi, edi
mov edi, dword [edx]
mov word [esp + 0x14c], 4
mov dword [esp + 0xd0], 0x80000001
mov dword [esp + 0xd4], 0x100001
xor eax, eax
mov dword [esp + 8], ecx
lea edx, [esp + 0xd0]
cmp byte [edi + 0x31], 2
mov ecx, edi
sete al
push eax
call fcn.00452600
add esp, 4
mov byte [edi + 0x249], 1
mov byte [esi], 3
mov byte [esi + 4], 5
cmp dword [esp + 8], 0
je 0x46b65f
push dword [esp + 0x24]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x46b67d
mov edi, dword [esp]
nop word cs:[eax + eax]
mov ecx, edi
call fcn.0044e250
add edi, 0x18
dec ebx
jne 0x46b670
cmp dword [esp + 0x2c], 0
je 0x46b695
push dword [esp]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x184]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
lea edi, [eax + 0x7fffffff]
cmp edi, 5
setae dl
cmp edi, 1
sete dh
or dh, dl
je 0x46b835
cmp dword [ecx], 0x80000005
je 0x46b6cb
call fcn.00451a10
mov eax, dword [esi]
mov edi, dword [esp + 0x178]
test eax, 0x7fffffff
je 0x46b7fa
push dword [esi + 4]
jmp 0x46be74
lea edi, [esp + 0xd0]
mov ecx, 0x1f
mov edx, 2
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xd0]
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 0x46b751
test esi, esi
je 0x46bf16
mov word [esi], 8
movzx eax, byte [esp + 0x148]
movzx ebx, byte [esp + 0x149]
shl eax, 8
shl ebx, 0x10
or ebx, eax
mov eax, 1
jmp 0x46b772
test esi, esi
je 0x46bf16
cmp ebp, 5
mov eax, 1
mov word [esi], 2
cmovb eax, ebp
mov ebx, dword [eax*4 + 0xfd0ecc]
xor eax, eax
or ebx, eax
cmp ebp, 5
mov ecx, 1
lea eax, [esp + 0xd8]
cmovb ecx, ebp
cmp ecx, 3
ja 0x46b81f
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x178]
add edx, dword [ecx*4 + 0x46c044]
jmp edx
push dword [eax]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp], ebx
mov dword [ebp + 4], 1
mov dword [ebp + 8], esi
mov edi, ebp
mov dword [ebp + 0xc], 1
mov ebp, dword [esp + 0x17c]
push ebp
call fcn.0046ced0
add esp, 4
push ebp
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add esp, 0x164
pop esi
pop edi
pop ebx
pop ebp
ret
test dword [esp + 0xd4], 0x7fffffff
mov ebp, dword [esp + 0x178]
je 0x46b7dd
jmp 0x46b7cd
cmp edi, 3
ja 0x46be58
mov eax, dword [esp + 0x14]
add eax, dword [edi*4 + 0x46c0f8]
mov edi, dword [esp + 0x178]
jmp eax
test ebx, ebx
je 0x46ba7b
mov edx, dword [esp]
lea eax, [ebx + ebx*2]
mov dword [esp + 8], ecx
lea eax, [edx + eax*8]
mov dword [esp + 0x10], eax
mov eax, edx
mov ebp, dword [eax + 8]
mov edi, dword [eax + 4]
add eax, 0x18
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 4], eax
lea esi, [edi + 0xe]
shl ebp, 4
jmp 0x46b8cd
test ebp, ebp
je 0x46b9cf
cmp dword [edi], 0x80000001
mov dx, 5
je 0x46b900
movzx edx, word [edi + 0xc]
movzx eax, dx
mov eax, dword [eax*4 + 0x46c054]
add eax, dword [esp + 0x14]
jmp eax
movzx eax, dx
mov eax, dword [eax*4 + 0x46c054]
add eax, dword [esp + 0x14]
jmp eax
lea ecx, [esp + 0xd0]
call fcn.00466000
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jne 0x46b87c
mov eax, dword [esp]
mov edi, dword [esp + 0x178]
mov ebp, dword [esp + 0x17c]
jmp 0x46be9b
mov eax, dword [esp + 0x180]
mov esi, edi
mov word [esp + 0x14c], 4
mov dword [esp + 0xd0], 0x80000001
mov dword [esp + 0xd4], 0x1a0001
lea edx, [esp + 0xd0]
mov edi, dword [eax]
xor eax, eax
cmp byte [edi + 0x31], 2
mov ecx, edi
sete al
push eax
call fcn.00452600
add esp, 4
mov byte [edi + 0x249], 1
mov word [esi], 0x109
cmp dword [esp + 8], 0
jne 0x46b64d
jmp 0x46b65f
mov eax, dword [esp]
xor edi, edi
mov edx, 1
mov dword [esp + 0x14], eax
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
je 0x46baa7
push dword [esp + 0x24]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
cmp edx, eax
mov dword [esp + 8], eax
je 0x46bb27
mov esi, dword [esp]
mov eax, edx
sub eax, esi
add eax, esi
mov dword [esp + 8], eax
jmp 0x46baec
mov ebp, 1
push edi
push ebx
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ebx, ebp
mov eax, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
add esi, 0xc
cmp esi, edx
je 0x46bb20
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
mov ecx, eax
neg ecx
jno 0x46badd
test edi, edi
js 0x46bf16
je 0x46bac5
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
test eax, eax
je 0x46bf16
mov ebp, eax
jmp 0x46baca
mov ebp, dword [esp + 0x17c]
movsd xmm1, qword [ebp + 0x50]
movsd xmm2, qword [ebp + 0x108]
mov eax, dword [ebp + 0x58]
movsd xmm0, qword [ebp + 0x48]
movsd xmm3, qword [ebp + 0xf8]
lea esi, [esp + 0xd0]
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ebp + 0x100]
movsd qword [esp + 0x80], xmm2
movsd xmm2, qword [ebp + 0x118]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x18]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x70], xmm3
movsd qword [esp + 0x78], xmm1
movsd xmm1, qword [ebp + 0x110]
movsd qword [esp + 0x90], xmm2
movsd xmm2, qword [ebp + 0x128]
mov dword [esp + 0x6c], eax
lea eax, [ebp + 0x64]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebp + 0x120]
movsd qword [esp + 0xa0], xmm2
movsd xmm2, qword [ebp + 0x5c]
movsd qword [esp + 0x98], xmm1
movsd xmm1, qword [ebp + 0x130]
movups xmmword [esp + 0x14], xmm2
movsd xmm2, qword [ebp]
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [ebp + 0x10]
movsd qword [esp + 0x54], xmm2
movsd qword [esp + 0x64], xmm1
movsd xmm1, qword [ebp + 8]
movsd qword [esp + 0x5c], xmm1
push 0x94
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [ebp + 0x30]
movsd xmm0, qword [ebp + 0x28]
movsd xmm2, qword [ebp + 0x40]
mov eax, dword [ebp + 0x24]
xor ecx, ecx
mov edx, 0x150
mov ebx, ebp
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [ebp + 0x38]
movsd qword [esp + 0xb0], xmm0
movsd qword [esp + 0xc8], xmm2
mov dword [esp + 0x3c], eax
movsd qword [esp + 0xc0], xmm1
movsd xmm1, qword [ebp + 0x1c]
movsd qword [esp + 0x34], xmm1
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x46bf16
mov edi, eax
mov ecx, dword [esp]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x2c]
sub eax, ecx
add edx, edx
shr eax, 2
mov dword [edi], edx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 4]
imul eax, eax, 0xaaaaaaab
mov dword [edi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x30], eax
movsd xmm0, qword [esp + 0x64]
movsd qword [edi + 0x28], xmm0
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
movsd qword [edi + 0x20], xmm1
movsd qword [edi + 0x18], xmm0
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x3c], eax
movsd xmm0, qword [esp + 0x34]
movsd qword [edi + 0x34], xmm0
movsd xmm0, qword [esp + 0xc8]
movsd qword [edi + 0x58], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [edi + 0x50], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
movsd qword [edi + 0x48], xmm1
movsd qword [edi + 0x40], xmm0
mov eax, dword [esp + 0x50]
mov dword [edi + 0x70], eax
mov eax, edi
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
add eax, 0x7c
movsd qword [edi + 0x68], xmm1
movups xmm1, xmmword [esp + 0x14]
movsd qword [edi + 0x60], xmm0
movlps qword [edi + 0x74], xmm1
push 0x94
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x184]
movsd qword [edi + 0x110], xmm0
movsd qword [edi + 0x118], xmm1
movsd xmm0, qword [esp + 0x80]
movsd qword [edi + 0x120], xmm0
movsd xmm0, qword [esp + 0x88]
movsd qword [edi + 0x128], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [edi + 0x130], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [edi + 0x138], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [edi + 0x140], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [edi + 0x148], xmm0
mov dword [eax + 4], edi
mov dword [eax + 8], 0xf94270
mov edi, eax
mov byte [eax], 0x16
mov eax, dword [ecx]
lea esi, [eax + 0x7fffffff]
cmp esi, 5
setae dl
cmp esi, 1
sete dh
or dh, dl
je 0x46be87
mov ecx, dword [esp + 0x28]
cmp dword [ecx], 0x80000005
je 0x46be28
call fcn.00451a10
mov eax, dword [esp + 0x184]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x46be8c
mov eax, dword [esp + 0x184]
push dword [eax + 4]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46be8c
test dword [esi + 4], 0x7fffffff
mov edi, dword [esp + 0x178]
je 0x46b7fa
mov eax, 8
push dword [esi + eax]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46b7fa
call fcn.00466f20
push ebx
jmp 0x46b804
add eax, 0x18
cmp eax, dword [esp + 0x10]
je 0x46bec6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x46be92
mov edx, dword [eax + 4]
shl ecx, 4
jmp 0x46beb2
add edx, 0x10
add ecx, 0xfffffff0
je 0x46be92
cmp dword [edx], 0x80000001
je 0x46beaa
cmp word [edx + 0xc], 5
je 0x46beaa
jmp 0x46ba19
mov ecx, dword [esp]
mov edx, 1
xor edi, edi
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
shl ecx, 4
test ecx, ecx
je 0x46bf37
cmp dword [eax], 0x80000001
je 0x46bef4
add ecx, 0xfffffff0
cmp word [eax + 0xc], 5
lea eax, [eax + 0x10]
jne 0x46bed9
jmp 0x46bf37
mov ecx, dword [eax + 0xc]
test ecx, ecx
js 0x46bf16
mov esi, dword [eax + 8]
mov edi, ecx
je 0x46bf18
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
test eax, eax
jne 0x46bf1d
ud2
mov eax, 1
mov dword [esp + 4], eax
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebp, dword [esp + 0x17c]
mov edx, dword [esp + 4]
test ebx, ebx
je 0x46c038
mov dword [esp + 0xc], edi
mov edi, dword [esp]
mov dword [esp + 4], edx
mov edx, edi
jmp 0x46bf75
mov eax, dword [esp + 0xd8]
add edi, 0x18
mov dword [edx + 8], eax
movsd xmm0, qword [esp + 0xd0]
movsd qword [edx], xmm0
add edx, 0xc
cmp edi, dword [esp + 0x10]
je 0x46c00c
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov ebp, dword [edi + 8]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x14], esi
test ebp, ebp
mov esi, edx
mov dword [esp + 0x30], eax
movsd xmm0, qword [edi + 0xc]
movsd qword [esp + 0xd0], xmm0
je 0x46bfe8
mov ebx, dword [esp + 0x14]
jmp 0x46bfc2
push dword [ebx + ecx]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, esi
add ebx, 0x10
dec ebp
je 0x46bfe8
mov eax, dword [ebx]
mov ecx, eax
neg ecx
jo 0x46bfbc
jae 0x46bfbc
mov ecx, 4
cmp eax, 0x80000001
jne 0x46bfa9
test dword [ebx + 4], 0x7fffffff
je 0x46bfbc
mov ecx, 8
jmp 0x46bfa9
cmp dword [esp + 0x30], 0
je 0x46bf4e
push dword [esp + 0x14]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, esi
jmp 0x46bf4e
mov dword [esp + 0x14], edx
mov ebp, dword [esp + 0x17c]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 4]
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
jne 0x46ba95
jmp 0x46baa7
mov eax, dword [esp]
mov ecx, dword [esp + 8]
jmp 0x46ba85