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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
rol cx, 8
movzx ebx, cx
cmp ebx, 0xfff1
jg 0x511d56
test ebx, ebx
je 0x511ddc
cmp ebx, 0xfff1
jne 0x511daf
mov byte [esi], 6
mov dword [esi + 1], 0x534241
jmp 0x5121eb
cmp ebx, 0xfff2
je 0x511deb
cmp ebx, 0xffff
jne 0x511daf
mov edi, edx
lea ecx, [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x2c
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movups xmmword [esp + 0x1c], xmm1
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.00507ea0
add esp, 0x2c
test byte [esp + 0x14], 1
jne 0x511dfa
mov ebx, dword [esp + 0x10]
mov edx, edi
jmp 0x511efa
mov eax, ebx
and eax, 0xffffffe0
cmp eax, 0xff20
je 0x511e7e
cmp eax, 0xff00
jne 0x511e94
mov byte [esp + 0x3c], 0xc
mov dword [esp + 0x3d], 0x5b435250
jmp 0x511ea9
mov byte [esi], 6
mov dword [esi + 1], 0x444e55
jmp 0x5121eb
mov byte [esi], 6
mov dword [esi + 1], 0x4d4f43
jmp 0x5121eb
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov ecx, edi
push eax
call fcn.00539450
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x511e23
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 8], eax
mov dword [esi], 0x11
mov dword [esi + 4], 0xb
mov dword [eax + 7], 0x5d666666
mov dword [eax + 4], 0x66667830
mov dword [eax], 0x5b565352
mov byte [eax + 0xb], 0
test byte [esp + 0x14], 1
je 0x5121eb
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x5121eb
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5121eb
mov byte [esp + 0x3c], 0xa
mov dword [esp + 0x3d], 0x305b534f
mov word [esp + 0x41], pe_nt_image_headers32
jmp 0x511eb5
cmp ebx, 0xff00
jb 0x511efa
mov byte [esp + 0x3c], 0xc
mov dword [esp + 0x3d], 0x5b565352
mov word [esp + 0x41], 0x7830
mov byte [esp + 0x43], 0
mov dword [esp + 0x10], ebx
movaps xmm0, xmmword [0x556020]
movups xmmword [esp + 0x14], xmm0
mov word [esp + 0x24], 1
mov byte [esp + 0x26], 0
lea eax, [esp + 0x10]
mov ecx, esp
push eax
push ecx
call fcn.0043de20
add esp, 8
movzx eax, byte [esp]
test al, 1
je 0x511fec
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x511ff2
movzx eax, byte [ebp + 0x30]
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], 0
test al, al
je 0x512091
lea ecx, [esp + 0x50]
push ebx
mov edi, edx
push dword [edx + 0x3c]
call fcn.005054e0
test byte [esp + 0x54], 1
jne 0x5120a8
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], 0x43a5a0
mov dword [esp + 0x78], 0x43abd0
lea edx, [esp + 0x10]
mov dword [esp + 0x7c], edx
sub esp, 0x10
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
lea ecx, [esp + 0x74]
call fcn.00504db0
test byte [esp + 0x6c], 1
jne 0x5120ce
mov word [esp + 0x38], 0x503
mov dword [esp + 0x28], 0x556c1d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0x5564e0
mov word [esp + 0x4c], 0x103
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
push ecx
lea edi, [esp + 0x18]
push edi
call fcn.0043a000
add esp, 0xc
lea ecx, [esp + 0x80]
push edi
call fcn.0054f5a2
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x80]
movsd qword [esp], xmm0
jmp 0x5120f7
shr eax, 1
lea edx, [esp + 1]
lea ecx, [esp + 0x3c]
push eax
push edx
call fcn.0054f9aa
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x28]
push 0x5567ca
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
test byte [esp + 0x28], 1
jne 0x51205f
test byte [esp], 1
jne 0x512071
test byte [esp + 0x3c], 1
jne 0x512088
jmp 0x5121eb
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp], 1
je 0x512053
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x3c], 1
je 0x5121eb
push dword [esp + 0x44]
jmp 0x5121e3
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
xor edi, edi
jmp 0x512145
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.00539450
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x51210e
jmp 0x512113
mov eax, dword [esp + 0x64]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call fcn.00539450
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x5120f7
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x6c], 1
je 0x512113
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x64], 0
test ecx, ecx
je 0x512113
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x54], 1
je 0x51212f
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x51212f
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [esp]
mov edi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 3
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
lea eax, [esp + 0x10]
lea ebx, [esp + 0x28]
push eax
push ebx
call fcn.0043de20
add esp, 8
mov ecx, edi
mov eax, ecx
shr al, 1
test cl, 1
lea edx, [esp + 1]
cmovne edx, dword [esp + 0x58]
movzx eax, al
cmovne eax, dword [esp + 0x5c]
mov ecx, ebx
push eax
push edx
call fcn.0054f9aa
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
test byte [esp + 0x28], 1
je 0x5121d9
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp], 1
je 0x5121eb
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret