Function at 0x46f8d0
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 0x46f8e6
pop eax
mov esi, ecx
mov ebp, edx
mov dword [esp], eax
mov eax, 0x7fffffff
add eax, dword [edi]
cmp eax, 4
setae cl
cmp eax, 1
sete al
or al, cl
lea ecx, [edi + 0xc]
cmp al, 1
mov dword [esp + 0x28], ecx
jne 0x46f9e6
cmp dword [edi + 0xc], 0x80000009
jne 0x46f9e6
mov ebx, dword [edi + 4]
mov edi, dword [edi + 8]
mov eax, dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0x14]
call dword [eax + 0x18]
add esp, 0xc
mov eax, dword [ebp]
mov ecx, eax
neg ecx
jo 0x46f966
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
sub eax, esi
cmp eax, edi
jb 0x470534
mov eax, dword [ebp + 4]
add eax, esi
push edi
push ebx
push eax
call fcn.004ef180
add esp, 0xc
add esi, edi
mov dword [ebp + 8], esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1a8]
mov ebx, dword [esp + 0x1a4]
cmp dword [edi + 0x18], 0
je 0x46faed
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.00456630
add esp, 4
mov byte [ebx + 0x249], 1
mov byte [esi], 3
mov byte [esi + 4], 5
mov edx, dword [esp]
mov ecx, 1
mov esi, dword [edi]
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470580]
jmp edx
test al, al
je 0x46fa4b
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, 2
call fcn.00499510
test eax, eax
je 0x47055b
mov word [eax], 0xa
mov ch, 1
mov cl, byte [edi + 0x78]
movzx edx, byte [edi + 0x79]
mov byte [esi + 1], cl
mov byte [esi + 2], dl
mov byte [esi], ch
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov esi, dword [edi]
mov edx, dword [esp]
mov ecx, 1
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470580]
jmp edx
mov dword [esp + 0xc], esi
xor ecx, ecx
mov edx, 2
mov ebx, 2
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x47055b
mov word [eax], 2
mov esi, 0x3000201
mov edx, dword [edi]
lea ecx, [edx*8 - 8]
add edx, 0x7fffffff
shr esi, cl
cmp edx, 4
mov edx, dword [esp + 0xc]
cmovb ebx, esi
mov esi, dword [edi]
xor ecx, ecx
mov byte [edx + 1], bl
mov byte [edx + 2], al
mov byte [edx], cl
mov dword [edx + 4], 1
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
mov edx, dword [esp]
mov ecx, 1
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470580]
jmp edx
mov ecx, dword [edi + 0x24]
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebp
test ecx, ecx
je 0x46fb4a
mov edx, dword [edi + 0x20]
shl ecx, 4
mov esi, 3
jmp 0x46fb18
add edx, 0x10
add ecx, 0xfffffff0
je 0x46fb4a
mov edi, dword [edx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
lea ebp, [ebx - 1]
cmp ebp, 2
jb 0x46fb10
cmp ebx, 3
jne 0x46fb3a
cmp word [edx + 0xc], 0xd
jne 0x46fb10
cmp edi, 0x80000001
jne 0x46fb4a
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
jmp 0x46fb4a
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 0x470329
movzx esi, word [ebp]
add ebp, 4
add ecx, 0xfffffffc
cmp esi, 0xb
ja 0x46fb63
bt eax, esi
jae 0x46fb63
movzx ebx, word [ebp - 2]
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, 0x10
call fcn.00499510
test eax, eax
je 0x47055b
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 0x46fc34
movzx esi, word [ebp]
add ebp, 4
cmp esi, 0xb
ja 0x46fbd0
bt ecx, esi
jae 0x46fbd0
movzx ebx, word [ebp - 2]
cmp edx, dword [esp + 0xfc]
je 0x46fc05
mov word [eax + edx*4], si
mov word [eax + edx*4 + 2], bx
inc edx
mov dword [esp + 0x104], edx
jmp 0x46fbd0
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xfc]
mov edx, dword [esp + 0x2c]
push 4
push 2
push 1
call fcn.004fe890
mov edx, dword [esp + 0x38]
mov ecx, 0xfa8
add esp, 0xc
mov eax, dword [esp + 0x100]
jmp 0x46fbf2
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0xfc]
test edx, edx
mov dword [esp + 0x10], eax
je 0x470333
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 0x46fd95
mov eax, dword [esi + 0x20]
mov ebp, dword [esp]
shl ecx, 4
mov edx, 3
jmp 0x46fc9c
add eax, 0x10
add ecx, 0xfffffff0
je 0x46fd8a
mov esi, dword [eax]
lea edi, [esi + 0x7fffffff]
cmp edi, 3
cmovae edi, edx
cmp edi, 2
jb 0x46fc90
cmp edi, 3
jne 0x46fcbb
cmp word [eax + 0xc], 0x14
jne 0x46fc90
cmp esi, 0x80000003
mov esi, dword [esp + 0x1a8]
mov ecx, 0
jne 0x46fd9a
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x47054d
mov esi, dword [eax + 0xc]
mov edi, dword [ecx + 0x2c]
mov ecx, esi
lea esi, [edi + edx*8]
test ecx, ecx
je 0x46fd78
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 0x46fd56
cmp word [ebp], ax
je 0x46fd62
add ebp, 4
add esi, 0xfffffffc
jne 0x46fd28
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add edi, 8
cmp edi, esi
jne 0x46fd0f
jmp 0x470554
add ebx, 4
add ecx, 0xfffffffc
je 0x46fd36
cmp word [ebx - 2], 3
jne 0x46fd4e
cmp word [ebx], dx
jne 0x46fd4e
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 0x46fd97
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
add edi, 8
cmp edi, esi
jne 0x46fd78
mov esi, dword [esp + 0x1a8]
xor ecx, ecx
jmp 0x46fd9a
xor ecx, ecx
mov ebp, dword [esp]
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 0x46fe26
mov ecx, dword [esi + 0x20]
shl edx, 4
mov esi, 3
mov dword [esp + 8], edi
jmp 0x46fdd8
mov edi, dword [ecx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
mov ebx, dword [ebx*4 + 0x470560]
add ebx, ebp
jmp ebx
and edi, 0xfffffff8
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
test edi, edi
js 0x47055b
mov ebx, dword [eax + 0x84]
mov esi, dword [esi + 0x14]
je 0x46fe5e
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, edi
call fcn.00499510
mov ebp, eax
test eax, eax
jne 0x46fe63
jmp 0x47055b
mov ebp, 1
mov eax, dword [esp + 8]
lea ebx, [ebx + eax + 8]
push edi
push esi
push ebp
call fcn.004ef180
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.00470590
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 0x4700cb
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 fcn.004ef180
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 [0x6019e5]
call fcn.00499510
test eax, eax
je 0x47055b
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 fcn.004ef180
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x5bb488
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 0x4702b8
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 fcn.004ef180
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 [0x6019e5]
call fcn.00499510
test eax, eax
je 0x47055b
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 fcn.004ef180
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x5bb4ac
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 + 0xc]
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 0x4702e7
push eax
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [edi]
mov edx, dword [esp]
mov ecx, 1
mov ebp, dword [esp + 4]
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470570]
jmp edx
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.00456630
add esp, 4
mov eax, dword [esp + 0xc]
test ebx, ebx
mov byte [esi + 0x249], 1
mov byte [eax], 8
mov dword [eax + 4], 0x80000005
je 0x4703ca
push dword [esp + 0x10]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [edi]
mov edx, dword [esp]
mov ecx, 1
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470580]
jmp edx
mov esi, dword [edi]
mov edx, dword [esp]
mov ecx, 1
lea eax, [esi + 0x7fffffff]
cmp eax, 4
cmovb ecx, eax
add edx, dword [ecx*4 + 0x470580]
jmp edx
mov ecx, ebp
mov edx, esi
push 1
push 1
push edi
call fcn.004fe890
add esp, 0xc
mov esi, dword [ebp + 8]
jmp 0x46f94d
xor ecx, ecx
jmp 0x46fd9a
xor ecx, ecx
jmp 0x46fd6b
ud2