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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x118
mov dword [esp + 0x2c], ecx
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov esi, dword [esi]
lea edi, [esp + 0x70]
mov dword [esp + 0x20], edi
lea edi, [esp + 0x78]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
lea ecx, [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xc8]
call fcn.00403970
sub esp, 0x28
xorps xmm0, xmm0
test byte [esp + 0xd4], 1
jne 0x40660d
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x64]
call dword [edx + 0x28]
sub esp, 0xc
test byte [esp + 0x6c], 1
jne 0x40709b
movsd xmm0, qword [esp + 0x64]
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp + 0xc0], 0x550de7
mov dword [esp + 0xc4], 8
movlps qword [esp + 0xe4], xmm0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
movsd xmm0, qword [esp + 0xe4]
movsd qword [esp], xmm0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
lea ecx, [esp + 0x30]
call fcn.00405180
movzx eax, byte [esp + 0x30]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x31]
cmovne eax, dword [esp + 0x38]
cmovne ecx, dword [esp + 0x34]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp], xmm0
mov ecx, ebx
call dword [eax + 0x74]
sub esp, 0x10
test byte [esp + 0x30], 1
je 0x4066c5
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
mov dword [esp + 0xb0], str.Fragment
mov dword [esp + 0xb4], 8
mov edi, dword [ebp + 0x24]
mov edx, dword [edi + 4]
and edx, 3
xor eax, eax
cmp edx, 2
sete al
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0xa8], str.FunctionLength
mov dword [esp + 0xac], 0xe
mov eax, 0x1ffc
and eax, dword [edi + 4]
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0xa0], str.RegF
mov dword [esp + 0xa4], 4
mov eax, dword [edi + 4]
shr eax, 0xd
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp], xmm0
and eax, 7
mov dword [esp + 8], eax
call dword [edx + 0x10]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x98], str.RegI
mov dword [esp + 0x9c], 4
movzx eax, word [edi + 6]
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x98]
movsd qword [esp], xmm0
and eax, 0xf
mov dword [esp + 8], eax
call dword [edx + 0x10]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x90], str.HomedParameters
mov dword [esp + 0x94], 0xf
mov eax, dword [edi + 4]
shr eax, 0x14
and eax, 1
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x90]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x88], 0x550eda
mov dword [esp + 0x8c], 2
mov eax, dword [edi + 4]
shr eax, 0x15
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x88]
movsd qword [esp], xmm0
and eax, 3
mov dword [esp + 8], eax
call dword [edx + 0x10]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x80], str.FrameSize
mov dword [esp + 0x84], 9
mov eax, dword [edi + 4]
shr eax, 0x13
and eax, 0xfffffff0
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x80]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x30], str.Prologue
mov dword [esp + 0x34], 8
mov eax, dword [ecx]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
mov dword [esp + 0x5c], ecx
call dword [eax + 0x88]
sub esp, 8
mov ebx, dword [edi + 4]
mov ecx, ebx
shr ecx, 0xd
and ecx, 0x78
mov eax, ebx
shr eax, 0x15
and al, 3
lea esi, [ecx + 8]
cmp al, 1
cmovne esi, ecx
mov ecx, ebx
shr ecx, 0xa
and ecx, 0x38
lea edx, [ecx + 8]
test ebx, 0xe000
cmove edx, ecx
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x40
add ecx, edx
mov dword [esp + 0x54], esi
add ecx, esi
add ecx, 8
and ecx, 0x1f0
shr ebx, 0x13
and ebx, 0xfffffff0
mov dword [esp + 0x58], ecx
sub ebx, ecx
cmp al, 2
je 0x4068f6
cmp al, 3
jne 0x4069ae
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xb
ja 0x40692c
mov dword [esp + 4], 0xc
mov dword [esp], str.mov_x29__sp_n
mov ecx, eax
call fcn.0054f224
sub esp, 8
jmp 0x406944
mov dword [ecx + 8], 0xa707320
mov dword [ecx + 4], 0x2c393278
mov dword [ecx], 0x20766f6d
add dword [eax + 0x10], 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
cmp ebx, 0x200
jg 0x406984
mov dword [esp + 0x34], str.stp_x29__lr___sp____d___n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
jmp 0x406a5d
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x15
ja 0x406a36
mov dword [esp + 4], 0x16
mov dword [esp], str.stp_x29__lr___sp__0__n
mov ecx, eax
call fcn.0054f224
sub esp, 8
cmp ebx, 0xff1
jl 0x406a5d
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
add ebx, 0xfffff010
mov dword [esp + 0x34], str.sub_sp__sp___d_n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x11
ja 0x406dd9
mov dword [esp + 4], 0x12
mov dword [esp], str.sub_sp__sp__4080_n
mov ecx, eax
call fcn.0054f224
sub esp, 8
test byte [edi + 6], 0x10
jne 0x406ac6
jmp 0x406bba
movsd xmm0, qword [0x550f1c]
movsd qword [ecx + 0xe], xmm0
movups xmm0, xmmword [str.stp_x29__lr___sp__0__n]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x16
cmp ebx, 0xff1
jge 0x4069ba
mov eax, dword [edi + 4]
shr eax, 0x15
and al, 3
cmp al, 3
jne 0x406a73
cmp ebx, 0x201
jge 0x406a89
jmp 0x406abc
cmp al, 2
setne al
test ebx, ebx
setg cl
test al, cl
jne 0x406a89
cmp ebx, 0x200
jle 0x406abc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov dword [esp + 0x34], str.sub_sp__sp___d_n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
test byte [edi + 6], 0x10
je 0x406bba
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edi, dword [esp + 0x58]
lea ecx, [edi - 0x10]
mov dword [esp + 0x34], str.stp_x6__x7___sp___d__n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ecx
lea ebx, [esp + 0x30]
mov dword [esp], ebx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
lea ecx, [edi - 0x20]
mov dword [esp + 0x34], str.stp_x4__x5___sp___d__n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ecx
mov dword [esp], ebx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
lea ecx, [edi - 0x30]
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x34], str.stp_x2__x3___sp___d__n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ecx
mov dword [esp], ebx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov eax, dword [edi + 4]
test eax, 0xf0000
jne 0x406b80
test eax, 0xe000
jne 0x406b80
and eax, 0x600000
cmp eax, 0x200000
jne 0x407074
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esp + 0x58]
add ecx, 0xffffffc0
mov dword [esp + 0x34], str.stp_x0__x1___sp___d__n
mov dword [esp + 0x30], 0x551330
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov eax, dword [edi + 4]
test eax, 0xe000
je 0x406d8c
mov ebx, eax
shr ebx, 0xd
and ebx, 7
lea esi, [ebx + 2]
shr esi, 1
test eax, 0x2000
jne 0x406cbe
lea edi, [esi - 1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
lea ecx, [edi*2 + 8]
mov edx, edi
shl edx, 4
add edx, dword [esp + 0x54]
mov dword [esp + 0x34], str.str_d_d___sp___d__n
mov dword [esp + 0x30], 0x551340
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
cmp ebx, 2
jb 0x406d8c
lea ebx, [esi*2 + 5]
shl esi, 4
mov eax, dword [esp + 0x54]
add esi, eax
add esi, 0xffffffe0
jmp 0x406c9b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
lea ecx, [ebx - 1]
mov dword [esp + 0x34], str.stp_d_d__d_d___sp___d__n
mov dword [esp + 0x30], 0x551350
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
add esi, 0xfffffff0
add ebx, 0xfffffffe
dec edi
jle 0x406d8c
cmp edi, 1
jne 0x406c50
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 4]
test eax, 0xf0000
jne 0x406c50
and eax, 0x600000
cmp eax, 0x200000
je 0x406c50
jmp 0x406d45
mov eax, esi
shl eax, 4
mov ecx, dword [esp + 0x54]
lea edi, [ecx + eax]
add edi, 0xfffffff0
lea ebx, [esi*2 + 7]
jmp 0x406d27
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
lea ecx, [ebx - 1]
mov dword [esp + 0x34], str.stp_d_d__d_d___sp___d__n
mov dword [esp + 0x30], 0x551350
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
add edi, 0xfffffff0
add ebx, 0xfffffffe
dec esi
jle 0x406d8c
cmp esi, 1
jne 0x406ce0
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 4]
test eax, 0xf0000
jne 0x406ce0
and eax, 0x600000
cmp eax, 0x200000
je 0x406ce0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov dword [esp + 0x34], str.stp_d_d__d_d___sp____d___n
mov dword [esp + 0x30], 0x551350
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 9
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov esi, dword [ebp + 0x24]
mov ebx, dword [esi + 4]
mov eax, ebx
and eax, 0x600000
cmp eax, 0x200000
jne 0x406e25
bt ebx, 0x10
jb 0x406e25
shr ebx, 0x10
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
test bl, 0xe
je 0x406dfc
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffff8
mov dword [esp + 0x34], str.str_lr___sp___d__n
mov dword [esp + 0x30], 0x551330
jmp 0x406e10
movups xmm0, xmmword [str.sub_sp__sp__4080_n]
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], 0xa30
add dword [eax + 0x10], 0x12
test byte [edi + 6], 0x10
jne 0x406ac6
jmp 0x406bba
mov dword [esp + 0x34], str.str_lr___sp____d___n
mov dword [esp + 0x30], 0x551330
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov eax, dword [esi + 4]
mov edi, eax
shr edi, 0x10
and edi, 0xf
je 0x406f5f
inc edi
mov ebx, edi
shr ebx, 1
and edi, 0xfffffffe
add edi, 0x11
mov eax, ebx
shl eax, 4
add eax, 0xfffffff0
mov dword [esp + 0x54], eax
jmp 0x406e7c
mov dword [esp + 0x30], 0x551340
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
add edi, 0xfffffffe
add esi, 0xfffffff0
mov dword [esp + 0x54], esi
dec ebx
mov eax, dword [ebp + 0x24]
mov esi, dword [eax + 4]
mov eax, esi
shr eax, 0x10
and eax, 0xf
inc eax
shr eax, 1
cmp ebx, eax
jne 0x406e99
test esi, 0x10000
jne 0x406ee0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
cmp ebx, 1
je 0x406f30
lea ecx, [edi + 1]
mov dword [esp + 0x34], str.stp_x_d__x_d___sp___d__n
mov dword [esp + 0x30], 0x551350
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], esi
jmp 0x406e60
and esi, 0x600000
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
cmp esi, 0x200000
jne 0x406f16
cmp ebx, 1
mov esi, dword [esp + 0x54]
je 0x40702f
mov dword [esp + 0x34], str.stp_x_d__lr___sp___d__n
jmp 0x406e50
cmp ebx, 1
mov esi, dword [esp + 0x54]
je 0x40700a
mov dword [esp + 0x34], str.str_x_d___sp___d__n
jmp 0x406e50
mov dword [esp + 0x34], str.stp_x19__x20___sp____d___n
mov dword [esp + 0x30], 0x551330
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, eax
call fcn.0054f24e
sub esp, 4
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 4]
and eax, 0x600000
cmp eax, 0x400000
jne 0x406fb2
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 7
ja 0x406fa1
mov dword [esp + 4], 8
mov dword [esp], str.pacibsp_n
mov ecx, eax
call fcn.0054f224
sub esp, 8
jmp 0x406fb2
mov dword [ecx + 4], 0xa707362
mov dword [ecx], 0x69636170
add dword [eax + 0x10], 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 3
ja 0x406fe8
mov dword [esp + 4], 4
mov dword [esp], str.end_n
mov ecx, eax
call fcn.0054f224
sub esp, 8
jmp 0x406ff2
mov dword [ecx], 0xa646e65
add dword [eax + 0x10], 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
mov dword [esp + 0x34], str.str_x_d___sp____d___n
mov dword [esp + 0x30], 0x551340
mov dword [esp + 0x38], 0x13
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
jmp 0x406f48
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 8
ja 0x40705a
mov dword [esp + 4], 9
mov dword [esp], str.INVALID__n
mov ecx, eax
call fcn.0054f224
sub esp, 8
jmp 0x406f59
mov byte [ecx + 8], 0xa
mov dword [ecx + 4], 0x2144494c
mov dword [ecx], 0x41564e49
add dword [eax + 0x10], 9
jmp 0x406f59
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov dword [esp + 0x34], str.stp_x0__x1___sp____d___n
mov dword [esp + 0x30], 0x551330
mov ecx, dword [esp + 0x58]
jmp 0x406ba5
xorps xmm0, xmm0
movsd qword [esp + 0xd8], xmm0
mov dword [esp + 0xe0], 0
lea eax, [esp + 0xd8]
mov dword [esp], eax
lea esi, [esp + 0x30]
mov ecx, esi
call fcn.00403b80
sub esp, 4
xor eax, eax
test byte [esp + 0x6c], 1
je 0x4070df
mov eax, dword [esp + 0x64]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
mov word [esp + 0x110], 0x101
mov eax, dword [esp + 0x110]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x100]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.0054f356
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x407122
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x50]
mov word [esp + 0xfc], 0x104
mov dword [esp + 0xec], eax
lea eax, [esp + 0xec]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0054f344
int3