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

Disassembly:
sub esp, 0x16c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x180]
mov edx, dword [esp + 0x194]
push ebx
mov ebx, dword [esp + 0x18c]
push ebp
mov ebp, dword [esp + 0x178]
push esi
mov esi, dword [esp + 0x198]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x118], 0
movups xmm0, xmmword [esi + 4]
mov eax, dword [esp + 0x188]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x190]
movups xmmword [esp + 0x130], xmm0
mov dword [esp + 0x44], eax
movups xmm0, xmmword [esi + 0x14]
mov eax, dword [esp + 0x19c]
push edi
mov edi, dword [esi + 0x34]
movups xmmword [esp + 0x144], xmm0
mov dword [esp + 0x24], ebp
movups xmm0, xmmword [esi + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x154], xmm0
jne 0x104546e3
cmp dword [esp + 0x1ac], 0
lea eax, [esp + 0x168]
push eax
push esi
setne al
movzx eax, al
push eax
mov eax, dword [esp + 0x34]
push edx
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [esp + 0x1c0]
push ebx
push ecx
push ebp
call fcn.10450700
mov eax, dword [esi + 0x110]
add esp, 0x28
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x10c]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x114]
mov dword [esp + 0x7c], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 0x54], eax
lea eax, [ebx + 0x28]
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x60], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x8c], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x9c], eax
test ecx, ecx
je 0x1045420a
mov eax, dword [ebx + 0x6c]
add eax, 8
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], eax
test edx, edx
je 0x1045421b
mov eax, dword [ebx + 0x70]
add eax, 8
mov dword [esp + 0x88], eax
mov esi, dword [esp + 0x15c]
push 4
push esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
call fcn.1045a260
push 5
push esi
mov dword [esp + 0xbc], eax
call fcn.1045a260
push 6
push esi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
call fcn.1045a260
push 7
push esi
mov dword [esp + 0xe4], eax
call fcn.1045a260
mov ecx, dword [esp + 0x15c]
add esp, 0x20
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x144]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x108], ecx
mov dword [esp + 0x110], ecx
mov dword [esp + 0x120], ecx
mov cl, byte [esp + 0x1b0]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xec], esi
mov dword [esp + 0xf4], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], esi
mov dword [esp + 0x10c], eax
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x124], esi
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], edx
cmp cl, byte [esp + 0x1b4]
ja 0x104546e3
movzx ebx, cl
mov al, cl
add al, 4
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x20], al
cmp dword [esp + ebx*4 + 0x168], 0
je 0x104546cd
mov ebp, dword [esp + ebx*4 + 0x54]
lea eax, [ebx + ebx*2]
mov ecx, dword [esp + 0x2c]
lea ebx, [esp + 0xa4]
lea eax, [ebx + eax*4]
xor esi, esi
mov ebx, dword [esp + 0x24]
add ecx, 0x24994
mov dword [esp + 0x38], ecx
mov edi, eax
mov dword [esp + 0x4c], eax
nop dword [eax]
push ecx
push dword [edi]
push ebx
call fcn.10080be0
add esp, 0xc
mov dword [ebp + esi*4], eax
test eax, eax
jne 0x104543ed
mov eax, dword [esp + 0x34]
push str.Failed_to_allocate_PICK_MODE_CONTEXT
push 2
push dword [eax + 0x1ba4]
call fcn.1006e850
add esp, 0xc
mov eax, dword [ebp + esi*4]
add edi, 4
mov ecx, dword [esp + 0x38]
inc esi
mov dword [eax + 0x178], 0
cmp esi, 3
jl 0x104543c0
mov esi, ebx
mov ebx, dword [esp + 0x3c]
cmp dword [esi + 0x5cdcc], 0
je 0x1045447b
cmp dword [esp + ebx*8 + 0x64], 0
je 0x1045447b
mov eax, dword [esp + ebx*8 + 0x84]
push dword [eax]
push dword [ebp]
call fcn.10080ee0
mov eax, dword [ebp]
add esp, 8
cmp dword [esp + ebx*8 + 0x68], 0
mov cl, byte [esp + 0x20]
mov byte [eax + 4], cl
mov eax, dword [ebp]
mov dword [eax + 0x178], 1
je 0x1045447b
mov eax, dword [esp + ebx*8 + 0x88]
push dword [eax]
push dword [ebp + 4]
call fcn.10080ee0
mov eax, dword [ebp + 4]
add esp, 8
mov cl, byte [esp + 0x20]
mov byte [eax + 4], cl
mov eax, dword [ebp + 4]
mov dword [eax + 0x178], 1
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x5cdd0], eax
je case.default.0x104544a2
cmp ebx, 3
ja case.default.0x104544a2
jmp dword [ebx*4 + 0x104546fc]
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x6c]
test edx, edx
je 0x104544cc
mov edx, dword [edx + 8]
test edx, edx
je 0x104544cc
cmp dword [edx + 0x150], 0x7fffffff
cmovl eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x104544eb
mov eax, dword [eax + 8]
test eax, eax
je 0x104544eb
cmp dword [eax + 0x150], 0x7fffffff
cmovl ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x10]
test eax, eax
je case.default.0x104544a2
cmp dword [eax + 0x150], 0x7fffffff
jge case.default.0x104544a2
mov dword [esp + 0x1c], eax
jmp case.default.0x104544a2
mov edx, dword [esp + 0x8c]
mov edx, dword [edx]
test edx, edx
je 0x1045452d
cmp dword [edx + 0x150], 0x7fffffff
cmovl eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x74]
test edx, edx
je 0x10454550
mov edx, dword [edx + 8]
test edx, edx
je 0x10454550
cmp dword [edx + 0x150], 0x7fffffff
cmovl ecx, edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x78]
test eax, eax
je case.default.0x104544a2
mov eax, dword [eax + 8]
jmp 0x104544ee
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x6c]
test edx, edx
je 0x10454583
mov edx, dword [edx + 8]
test edx, edx
je 0x10454583
cmp dword [edx + 0x150], 0x7fffffff
cmovl eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x104545a2
mov eax, dword [eax + 8]
test eax, eax
je 0x104545a2
cmp dword [eax + 0x150], 0x7fffffff
cmovl ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x18]
jmp 0x104544ee
mov esi, dword [esp + 0x9c]
mov esi, dword [esi]
test esi, esi
je 0x104545c8
cmp dword [esi + 0x150], 0x7fffffff
cmovl eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x70]
test esi, esi
je 0x104545eb
mov esi, dword [esi + 8]
test esi, esi
je 0x104545eb
cmp dword [esi + 0x150], 0x7fffffff
cmovl ecx, esi
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x78]
test eax, eax
je case.default.0x104544a2
mov eax, dword [eax + 8]
test eax, eax
je case.default.0x104544a2
cmp dword [eax + 0x150], 0x7fffffff
cmovl edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xd4]
movups xmm0, xmmword [eax + 0x14]
movups xmm1, xmmword [eax + 4]
movups xmmword [esp + 0x144], xmm0
movups xmm0, xmmword [eax + 0x24]
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + ebx*2]
psrldq xmm0, 8
lea eax, [ecx + eax*8]
movd ebx, xmm0
push eax
push dword [esp + 0x54]
movaps xmm0, xmm1
lea eax, [esp + 0x58]
push dword [esp + 0x2c]
psrldq xmm0, 8
push ebx
movd edi, xmm0
psrldq xmm1, 4
movd esi, xmm1
push edi
push esi
push ebp
mov ebp, dword [esp + 0x44]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push dword [esp + 0x60]
push ebp
call fcn.1045bad0
mov edx, dword [esp + 0x6c]
mov cl, byte [edx + 0x144]
or cl, al
setne al
xor ecx, ecx
mov byte [edx + 0x144], al
mov eax, dword [ebp + 0x3e7a8]
cmp byte [eax + 0x4d], cl
sete cl
lea ecx, [ecx*2 + 1]
push ecx
push ebx
push edi
push esi
push dword [esp + 0x94]
push dword [esp + 0x84]
call fcn.1009f610
mov cl, byte [esp + 0x204]
add esp, 0x54
inc cl
mov byte [esp + 0x1b0], cl
cmp cl, byte [esp + 0x1b4]
jbe 0x10454371
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x16c
ret